TrustLevelCollection.Set(Int32, TrustLevel) Método

Definición

Agrega el objeto especificado TrustLevel al TrustLevelCollection objeto en el índice especificado.

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)

Parámetros

index
Int32

Ubicación del índice del objeto TrustLevel que se va a establecer en .TrustLevelCollection

trustLevel
TrustLevel

que TrustLevel se va a establecer en .TrustLevelCollection

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar el Set método . Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la TrustLevelCollection clase .

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

Se aplica a

Consulte también