ApplicationTrustCollection.Add(ApplicationTrust) Metoda

Definice

Přidá prvek do kolekce.

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

Parametry

trust
ApplicationTrust

Objekt ApplicationTrust , který chcete přidat.

Návraty

Int32

Index, do kterého byl vložen nový prvek.

Atributy

Výjimky

trust je null.

Vlastnost ApplicationIdentity zadané hodnoty ApplicationTrust trust je null.

Poznámky

Objekt ApplicationTrust se přidá na konec kolekce. Pokud chcete odebrat vztah důvěryhodnosti aplikace, který jste přidali dříve, použijte metodu Remove .

Platí pro