TrustLevelCollection.Set(Int32, TrustLevel) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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)