X509Certificate2Collection.RemoveRange 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 X509Certificate2 对象中移除多个 X509Certificate2Collection 对象。
重载
RemoveRange(X509Certificate2[]) |
从 X509Certificate2 对象中移除数组中的多个 X509Certificate2Collection 对象。 |
RemoveRange(X509Certificate2Collection) |
从 X509Certificate2 对象中移除另一个 X509Certificate2Collection 对象中的多个 X509Certificate2Collection 对象。 |
RemoveRange(X509Certificate2[])
从 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 对象数组。
例外
certificates
为 null
。
注解
如果有要从 对象中删除的对象 X509Certificate2 数组, X509Certificate2Collection 请使用此方法。 AddRange和 RemoveRange 方法以事务方式处理请求,因此,如果单个添加或删除失败,则整个操作将中止。
适用于
RemoveRange(X509Certificate2Collection)
从 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)
参数
- certificates
- X509Certificate2Collection
一个 X509Certificate2Collection 对象。
例外
certificates
为 null
。
注解
如果对象中有要从另X509Certificate2Collection一个X509Certificate2Collection对象中删除的证书,请使用此方法。 AddRange和 RemoveRange 方法以事务方式处理请求,因此,如果单个添加或删除失败,则整个操作将中止。