Share via


TrustLevelCollection.Set(Int32, TrustLevel) Método

Definición

Agrega el objeto TrustLevel especificado al objeto TrustLevelCollection 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 en el índice del objeto TrustLevel que se va a establecer en el objeto TrustLevelCollection.

trustLevel
TrustLevel

Objeto TrustLevel que se va a establecer en el objeto TrustLevelCollection.

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar el método Set. Este ejemplo de código es parte de un ejemplo mayor proporcionado para la clase TrustLevelCollection.

// 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