X509Certificate2Collection.RemoveRange 方法

定义

X509Certificate2 对象中移除多个 X509Certificate2Collection 对象。

重载

RemoveRange(X509Certificate2[])

X509Certificate2 对象中移除数组中的多个 X509Certificate2Collection 对象。

RemoveRange(X509Certificate2Collection)

X509Certificate2 对象中移除另一个 X509Certificate2Collection 对象中的多个 X509Certificate2Collection 对象。

RemoveRange(X509Certificate2[])

Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs

X509Certificate2 对象中移除数组中的多个 X509Certificate2Collection 对象。

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())

参数

certificates
X509Certificate2[]

一个 X509Certificate2 对象数组。

例外

certificatesnull

注解

如果有要从 对象中删除的对象 X509Certificate2 数组, X509Certificate2Collection 请使用此方法。 AddRangeRemoveRange 方法以事务方式处理请求,因此,如果单个添加或删除失败,则整个操作将中止。

适用于

RemoveRange(X509Certificate2Collection)

Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs

X509Certificate2 对象中移除另一个 X509Certificate2Collection 对象中的多个 X509Certificate2Collection 对象。

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)

参数

例外

certificatesnull

注解

如果对象中有要从另X509Certificate2Collection一个X509Certificate2Collection对象中删除的证书,请使用此方法。 AddRangeRemoveRange 方法以事务方式处理请求,因此,如果单个添加或删除失败,则整个操作将中止。

适用于