Langue

TrustLevelCollection.Add(TrustLevel) Méthode

Définition

Ajoute un TrustLevel objet à 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

À TrustLevel ajouter à la collection.

Exemples

L’exemple de code suivant montre comment utiliser la Add méthode. 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 à