TrustLevelCollection.Add(TrustLevel) Metod

Definition

Lägger till ett TrustLevel objekt i samlingen.

public:
 void Add(System::Web::Configuration::TrustLevel ^ trustLevel);
public void Add(System.Web.Configuration.TrustLevel trustLevel);
member this.Add : System.Web.Configuration.TrustLevel -> unit
Public Sub Add (trustLevel As TrustLevel)

Parametrar

trustLevel
TrustLevel

Att TrustLevel lägga till i samlingen.

Exempel

I följande kodexempel visas hur du använder Add metoden. Det här kodexemplet är en del av ett större exempel för TrustLevelCollection klassen.

// Add a new TrustLevel to the collection.
TrustLevelCollection1.Add(new TrustLevel("Level1", "Level1.config"));
' Add a new TrustLevel to the collection.
TrustLevelCollection1.Add(New TrustLevel("Level1", "Level1.config"))

Gäller för