Share via


TrustLevelCollection.Set(Int32, TrustLevel) Méthode

Définition

Ajoute l'objet TrustLevel spécifié à l'objet TrustLevelCollection à l'index 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 d'index du TrustLevel à définir dans la TrustLevelCollection.

trustLevel
TrustLevel

TrustLevel à définir dans la TrustLevelCollection.

Exemples

L'exemple de code suivant illustre l'utilisation de la méthode Set. 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