TrustLevelCollection.Add(TrustLevel) Metodo

Definizione

Aggiunge un TrustLevel oggetto all'insieme.

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)

Parametri

trustLevel
TrustLevel

Oggetto TrustLevel da aggiungere alla raccolta.

Esempio

Nell'esempio di codice seguente viene illustrato come usare il Add metodo . Questo esempio di codice fa parte di un esempio più ampio fornito per la 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"))

Si applica a