ApplicationTrustCollection.Add(ApplicationTrust) Methode

Definitie

Voegt een element toe aan de verzameling.

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

Parameters

trust
ApplicationTrust

Het ApplicationTrust object dat moet worden toegevoegd.

Retouren

De index waarop het nieuwe element is ingevoegd.

Kenmerken

Uitzonderingen

trust is null.

De ApplicationIdentity eigenschap van de ApplicationTrust opgegeven in trust is null.

Opmerkingen

Het ApplicationTrust object wordt toegevoegd aan het einde van de verzameling. Als u een toepassingsvertrouwensrelatie wilt verwijderen die u eerder hebt toegevoegd, gebruikt u de Remove methode.

Van toepassing op