Επεξεργασία

Κοινή χρήση μέσω


ApplicationTrustCollection.Remove Method

Definition

Removes the elements that match the specified criteria.

Overloads

Remove(ApplicationTrust)

Removes the specified application trust from the collection.

Remove(ApplicationIdentity, ApplicationVersionMatch)

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

Remove(ApplicationTrust)

Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs

Removes the specified application trust from the collection.

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

Parameters

trust
ApplicationTrust

The ApplicationTrust object to remove.

Attributes

Exceptions

trust is null.

The ApplicationIdentity property of the ApplicationTrust object specified by trust is null.

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.

Applies to

Remove(ApplicationIdentity, ApplicationVersionMatch)

Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs

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

public:
 void Remove(ApplicationIdentity ^ applicationIdentity, System::Security::Policy::ApplicationVersionMatch versionMatch);
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
[<System.Security.SecurityCritical>]
member this.Remove : ApplicationIdentity * System.Security.Policy.ApplicationVersionMatch -> unit
Public Sub Remove (applicationIdentity As ApplicationIdentity, versionMatch As ApplicationVersionMatch)

Parameters

applicationIdentity
ApplicationIdentity

The ApplicationIdentity of the ApplicationTrust object to be removed.

versionMatch
ApplicationVersionMatch

One of the ApplicationVersionMatch values.

Attributes

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