ApplicationTrustCollection.Remove ApplicationTrustCollection.Remove ApplicationTrustCollection.Remove ApplicationTrustCollection.Remove Method

Definition

Removes the elements that match the specified criteria.

Overloads

Remove(ApplicationTrust) Remove(ApplicationTrust) Remove(ApplicationTrust) Remove(ApplicationTrust)

Removes the specified application trust from the collection.

Remove(ApplicationIdentity, ApplicationVersionMatch) Remove(ApplicationIdentity, ApplicationVersionMatch) Remove(ApplicationIdentity, ApplicationVersionMatch)

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

Remove(ApplicationTrust) Remove(ApplicationTrust) Remove(ApplicationTrust) Remove(ApplicationTrust)

Removes the specified application trust from the collection.

public:
 void Remove(System::Security::Policy::ApplicationTrust ^ trust);
[System.Security.SecurityCritical]
public void Remove (System.Security.Policy.ApplicationTrust trust);
member this.Remove : System.Security.Policy.ApplicationTrust -> unit
Public Sub Remove (trust As ApplicationTrust)

Parameters

Exceptions

Remarks

The entire collection is searched, and all instances of the specified application trust are removed.

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.

Remove(ApplicationIdentity, ApplicationVersionMatch) Remove(ApplicationIdentity, ApplicationVersionMatch) Remove(ApplicationIdentity, ApplicationVersionMatch)

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

public:
 void Remove(ApplicationIdentity ^ applicationIdentity, System::Security::Policy::ApplicationVersionMatch versionMatch);
[System.Security.SecurityCritical]
public void Remove (ApplicationIdentity applicationIdentity, System.Security.Policy.ApplicationVersionMatch versionMatch);
member this.Remove : ApplicationIdentity * System.Security.Policy.ApplicationVersionMatch -> unit

Parameters

Remarks

The application trust can be identified by an exact version match, dependent upon the value of the versionMatch parameter. The Find 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.

Applies to