ApplicationTrustCollection.Remove Methode
Definition
Entfernt die Elemente, die den angegebenen Kriterien entsprechen.Removes the elements that match the specified criteria.
Überlädt
Remove(ApplicationTrust) |
Entfernt die angegebene Anwendungsvertrauensstellung aus der Auflistung.Removes the specified application trust from the collection. |
Remove(ApplicationIdentity, ApplicationVersionMatch) |
Entfernt alle Anwendungsvertrauensstellungsobjekte aus der Auflistung, die den angegebenen Kriterien entsprechen.Removes all application trust objects that match the specified criteria from the collection. |
Remove(ApplicationTrust)
Entfernt die angegebene Anwendungsvertrauensstellung aus der Auflistung.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)
Parameter
- trust
- ApplicationTrust
Das zu entfernende ApplicationTrust-Objekt.The ApplicationTrust object to remove.
- Attribute
Ausnahmen
trust
ist null
.trust
is null
.
Die ApplicationIdentity-Eigenschaft des ApplicationTrust-Objekts, die von trust
angegeben wird, ist null
.The ApplicationIdentity property of the ApplicationTrust object specified by trust
is null
.
Hinweise
Die gesamte Sammlung wird durchsucht, und alle Instanzen der angegebenen Anwendungs Vertrauensstellung werden entfernt.The entire collection is searched, and all instances of the specified application trust are removed.
Die Objekte, die den entfernten Objekten folgen, werden nach oben verschoben, um die frei gewordenen Positionen zu belegen.The objects that follow the removed objects move up to occupy the vacated positions. Die Indizes der Objekte, die verschoben werden, werden ebenfalls aktualisiert.The indexes of the objects that are moved are also updated.
Gilt für:
Remove(ApplicationIdentity, ApplicationVersionMatch)
Entfernt alle Anwendungsvertrauensstellungsobjekte aus der Auflistung, die den angegebenen Kriterien entsprechen.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)
Parameter
- applicationIdentity
- ApplicationIdentity
Die ApplicationIdentity des zu entfernenden ApplicationTrust-Objekts.The ApplicationIdentity of the ApplicationTrust object to be removed.
- versionMatch
- ApplicationVersionMatch
Einer der ApplicationVersionMatch-Werte.One of the ApplicationVersionMatch values.
- Attribute
Hinweise
Die Anwendungs Vertrauensstellung kann durch eine exakte Versions Übereinstimmung identifiziert werden, abhängig vom Wert des- versionMatch
Parameters.The application trust can be identified by an exact version match, dependent upon the value of the versionMatch
parameter. Die Find -Methode wird verwendet, um alle übereinstimmenden Anwendungs Vertrauensstellungen zu finden, und die entsprechenden Elemente werden aus der Auflistung entfernt.The Find method is used to locate all matching application trusts, and the matching items are removed from the collection.
Die Objekte, die den entfernten Objekten folgen, werden nach oben verschoben, um die frei gewordenen Positionen zu belegen.The objects that follow the removed objects move up to occupy the vacated positions. Die Indizes der Objekte, die verschoben werden, werden ebenfalls aktualisiert.The indexes of the objects that are moved are also updated.