TrustLevelCollection.Set(Int32, TrustLevel) Metodo

Definizione

Aggiunge l'oggetto TrustLevel specificato 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 di indice dell'oggetto TrustLevel da impostare all'interno dell'oggetto TrustLevelCollection.

trustLevel
TrustLevel

Oggetto TrustLevel da impostare all'interno dell'oggetto TrustLevelCollection.

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare il metodo Set. 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