TrustLevelCollection.Set(Int32, TrustLevel) Metodo

Definizione

Aggiunge l'oggetto specificato TrustLevel all'oggetto TrustLevelCollection in corrispondenza dell'indice specificato.

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)

Parametri

index
Int32

Posizione dell'indice dell'oggetto TrustLevel da impostare all'interno di TrustLevelCollection.

trustLevel
TrustLevel

Oggetto TrustLevel da impostare all'interno di TrustLevelCollection.

Esempio

Nell'esempio di codice seguente viene illustrato come usare il Set metodo . Questo esempio di codice fa parte di un esempio più ampio fornito per 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)

Si applica a

Vedi anche