Share via


TrustLevelCollection.Add(TrustLevel) Méthode

Définition

Ajoute un objet TrustLevel à la collection.

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)

Paramètres

trustLevel
TrustLevel

Objet TrustLevel à ajouter à la collection.

Exemples

L'exemple de code suivant illustre l'utilisation de la méthode Add. Cet exemple de code fait partie d’un exemple plus grand fourni pour la TrustLevelCollection classe .

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

S’applique à