X509Certificate2Collection.AddRange 方法

定义

将多个 X509Certificate2 对象添加到 X509Certificate2Collection 对象。

重载

AddRange(X509Certificate2[])

将数组中的多个 X509Certificate2 对象添加到 X509Certificate2Collection 对象。

AddRange(X509Certificate2Collection)

X509Certificate2 对象中的多个 X509Certificate2Collection 对象添加到另一个 X509Certificate2Collection 对象。

AddRange(X509Certificate2[])

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

将数组中的多个 X509Certificate2 对象添加到 X509Certificate2Collection 对象。

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

参数

certificates
X509Certificate2[]

一个 X509Certificate2 对象数组。

例外

certificatesnull

注解

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

适用于

AddRange(X509Certificate2Collection)

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

X509Certificate2 对象中的多个 X509Certificate2Collection 对象添加到另一个 X509Certificate2Collection 对象。

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

参数

例外

certificatesnull

注解

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

适用于