ApplicationTrustCollection.Add(ApplicationTrust) ApplicationTrustCollection.Add(ApplicationTrust) ApplicationTrustCollection.Add(ApplicationTrust) ApplicationTrustCollection.Add(ApplicationTrust) Method

Definition

Adds an element to the collection.

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
Public Function Add (trust As ApplicationTrust) As Integer

Parameters

Returns

The index at which the new element was inserted.

Exceptions

Remarks

The ApplicationTrust object is added to the end of the collection. To remove an application trust that you previously added, use the Remove method.

Applies to