TrustLevelCollection.Add(TrustLevel) Metoda

Definicja

TrustLevel Dodaje obiekt do kolekcji.

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)

Parametry

trustLevel
TrustLevel

Element TrustLevel do dodania do kolekcji.

Przykłady

W poniższym przykładzie kodu pokazano, jak używać Add metody . Ten przykład kodu jest częścią większego przykładu udostępnionego TrustLevelCollection dla klasy .

// 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"))

Dotyczy