Share via


TrustLevelCollection.Add(TrustLevel) Método

Definición

Agrega un objeto TrustLevel a la colección.

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

TrustLevel que se agrega a la colección.

Ejemplos

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

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

Se aplica a