ApplicationTrustCollection.Add(ApplicationTrust) Methode
Definition
Fügt der Auflistung ein Element hinzu.Adds an element to the collection.
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 hinzuzufügende ApplicationTrust-Objekt.The ApplicationTrust object to add.
Gibt zurück
Der Index, an dem das neue Element eingefügt wurde.The index at which the new element was inserted.
- Attribute
Ausnahmen
trust
ist null
.trust
is null
.
Die in trust
angegebene ApplicationIdentity-Eigenschaft von ApplicationTrust ist null
.The ApplicationIdentity property of the ApplicationTrust specified in trust
is null
.
Hinweise
Das- ApplicationTrust Objekt wird am Ende der Collection hinzugefügt.The ApplicationTrust object is added to the end of the collection. Verwenden Sie die-Methode, um eine zuvor hinzugefügte Anwendungs Vertrauensstellung zu entfernen Remove .To remove an application trust that you previously added, use the Remove method.