TrustLevelCollection.Set(Int32, TrustLevel) Méthode

Définition

Ajoute l’objet spécifié TrustLevel à l’objet à l’index TrustLevelCollection spécifié.

public:
 void Set(int index, System::Web::Configuration::TrustLevel ^ trustLevel);
public void Set(int index, System.Web.Configuration.TrustLevel trustLevel);
member this.Set : int * System.Web.Configuration.TrustLevel -> unit
Public Sub Set (index As Integer, trustLevel As TrustLevel)

Paramètres

index
Int32

Emplacement de l’index TrustLevel à définir dans le TrustLevelCollection.

trustLevel
TrustLevel

À TrustLevel définir dans le TrustLevelCollection.

Exemples

L’exemple de code suivant montre comment utiliser la Set méthode. Cet exemple de code fait partie d’un exemple plus grand fourni pour la TrustLevelCollection classe.

// Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2);
' Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2)

S’applique à

Voir aussi