TrustLevelCollection.Add(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 um TrustLevel objeto à coleção.
public:
void Add(System::Web::Configuration::TrustLevel ^ trustLevel);
public void Add(System.Web.Configuration.TrustLevel trustLevel);
member this.Add : System.Web.Configuration.TrustLevel -> unit
Public Sub Add (trustLevel As TrustLevel)
Parâmetros
- trustLevel
- TrustLevel
A TrustLevel acrescentar à coleção.
Exemplos
O exemplo de código seguinte demonstra como usar o Add método. Este exemplo de código faz parte de um exemplo maior fornecido para a TrustLevelCollection classe.
// Add a new TrustLevel to the collection.
TrustLevelCollection1.Add(new TrustLevel("Level1", "Level1.config"));
' Add a new TrustLevel to the collection.
TrustLevelCollection1.Add(New TrustLevel("Level1", "Level1.config"))