System.Security.Policy.ApplicationTrustCollection.Add Method

Adds an element to the collection.

Syntax

public int Add (ApplicationTrust trust)

Parameters

trust
The System.Security.Policy.ApplicationTrust object to add.

Returns

The index at which the new element was inserted.

Remarks

The System.Security.Policy.ApplicationTrust object is added to the end of the collection. To remove an application trust that you previously added, use the erload:System.Security.Policy.ApplicationTrustCollection.Remove method.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0