X509Certificate2Collection.RemoveRange Metod

Definition

Tar bort flera X509Certificate2 objekt från ett X509Certificate2Collection objekt.

Överlagringar

Name Description
RemoveRange(X509Certificate2[])

Tar bort flera X509Certificate2 objekt i en matris från ett X509Certificate2Collection objekt.

RemoveRange(X509Certificate2Collection)

Tar bort flera X509Certificate2 objekt i ett objekt från ett X509Certificate2Collection annat X509Certificate2Collection objekt.

RemoveRange(X509Certificate2[])

Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs

Tar bort flera X509Certificate2 objekt i en matris från ett X509Certificate2Collection objekt.

public:
 void RemoveRange(cli::array <System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ certificates);
public void RemoveRange(System.Security.Cryptography.X509Certificates.X509Certificate2[] certificates);
member this.RemoveRange : System.Security.Cryptography.X509Certificates.X509Certificate2[] -> unit
Public Sub RemoveRange (certificates As X509Certificate2())

Parametrar

certificates
X509Certificate2[]

En matris med X509Certificate2 objekt.

Undantag

certificates är null.

Kommentarer

Använd den här metoden om du har en matris med X509Certificate2 objekt att ta bort från ett X509Certificate2Collection objekt. Metoderna AddRange och RemoveRange bearbetar begäranden transaktionsmässigt, så att om ett enda tillägg eller en borttagning misslyckas avbryts hela åtgärden.

Gäller för

RemoveRange(X509Certificate2Collection)

Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs
Källa:
X509Certificate2Collection.cs

Tar bort flera X509Certificate2 objekt i ett objekt från ett X509Certificate2Collection annat X509Certificate2Collection objekt.

public:
 void RemoveRange(System::Security::Cryptography::X509Certificates::X509Certificate2Collection ^ certificates);
public void RemoveRange(System.Security.Cryptography.X509Certificates.X509Certificate2Collection certificates);
member this.RemoveRange : System.Security.Cryptography.X509Certificates.X509Certificate2Collection -> unit
Public Sub RemoveRange (certificates As X509Certificate2Collection)

Parametrar

Undantag

certificates är null.

Kommentarer

Använd den här metoden om du har certifikat i ett X509Certificate2Collection objekt som du vill ta bort från ett annat X509Certificate2Collection objekt. Metoderna AddRange och RemoveRange bearbetar begäranden transaktionsmässigt, så att om ett enda tillägg eller en borttagning misslyckas avbryts hela åtgärden.

Gäller för