TrustLevelCollection.Set(Int32, TrustLevel) Método

Definição

Adiciona o objeto especificado TrustLevel ao TrustLevelCollection objeto no í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

A localização do TrustLevel índice de a ser definida dentro do TrustLevelCollection.

trustLevel
TrustLevel

O TrustLevel para ser definido dentro do TrustLevelCollection.

Exemplos

O exemplo de código seguinte demonstra como usar o Set método. Este exemplo de código faz parte de um exemplo maior fornecido para a TrustLevelCollection classe.

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

Aplica-se a

Ver também