TrustLevelCollection.Add(TrustLevel) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Lägger till ett TrustLevel objekt i samlingen.
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)
Parametrar
- trustLevel
- TrustLevel
Att TrustLevel lägga till i samlingen.
Exempel
I följande kodexempel visas hur du använder Add metoden. Det här kodexemplet är en del av ett större exempel för TrustLevelCollection klassen.
// 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"))