System.Security.Policy.ApplicationTrustCollection.Remove Method

Removes all application trust objects that match the specified criteria from the collection.

Syntax

public void Remove (ApplicationIdentity applicationIdentity, ApplicationVersionMatch versionMatch)

Parameters

applicationIdentity
The ApplicationIdentity of the System.Security.Policy.ApplicationTrust object to be removed.
versionMatch
One of the System.Security.Policy.ApplicationVersionMatch values.

Remarks

The application trust can be identified by an exact version match, dependent upon the value of the versionMatch parameter. The ApplicationTrustCollection.Find(ApplicationIdentity, ApplicationVersionMatch) method is used to locate all matching application trusts, and the matching items are removed from the collection.

The objects that follow the removed objects move up to occupy the vacated positions. The indexes of the objects that are moved are also updated.

Requirements

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