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

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

Atributy

Výjimky

trust je null.

Vlastnost ApplicationIdentity zadaného parametru ApplicationTrusttrust je null.

Poznámky

Objekt ApplicationTrust se přidá na konec kolekce. Chcete-li odebrat vztah důvěryhodnosti aplikace, kterou jste přidali dříve, použijte metodu Remove .

Platí pro