ApplicationTrustCollection.Add(ApplicationTrust) Methode

Definition

Fügt der Auflistung ein Element hinzu.

public:
 int Add(System::Security::Policy::ApplicationTrust ^ trust);
public int Add(System.Security.Policy.ApplicationTrust trust);
[System.Security.SecurityCritical]
public int Add(System.Security.Policy.ApplicationTrust trust);
member this.Add : System.Security.Policy.ApplicationTrust -> int
[<System.Security.SecurityCritical>]
member this.Add : System.Security.Policy.ApplicationTrust -> int
Public Function Add (trust As ApplicationTrust) As Integer

Parameter

trust
ApplicationTrust

Das ApplicationTrust hinzuzufügende Objekt.

Gibt zurück

Der Index, an dem das neue Element eingefügt wurde.

Attribute

Ausnahmen

trust ist null.

Die ApplicationIdentity Eigenschaft des ApplicationTrust angegebenen Objekts trust ist null.

Hinweise

Das ApplicationTrust Objekt wird am Ende der Auflistung hinzugefügt. Verwenden Sie die Methode, um eine Remove Anwendungsvertrauensstellung zu entfernen, die Sie zuvor hinzugefügt haben.

Gilt für: