共用方式為


X509Certificate2Collection.AddRange 方法

定義

將多個 X509Certificate2 物件加入 X509Certificate2Collection 物件。

多載

AddRange(X509Certificate2[])

將陣列中的多個 X509Certificate2 物件加入 X509Certificate2Collection 物件。

AddRange(X509Certificate2Collection)

X509Certificate2 物件中的多個 X509Certificate2Collection 物件加入另一個 X509Certificate2Collection 物件。

AddRange(X509Certificate2[])

來源:
X509Certificate2Collection.cs
來源:
X509Certificate2Collection.cs
來源:
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

備註

如果您有要加入物件X509Certificate2Collection的物件X509Certificate2陣列,請使用這個方法。 AddRangeRemoveRange 方法會以交易方式處理要求,因此,如果單一新增或移除失敗,則會中止整個作業。

適用於

AddRange(X509Certificate2Collection)

來源:
X509Certificate2Collection.cs
來源:
X509Certificate2Collection.cs
來源:
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

備註

如果您有想要新增至另一個X509Certificate2CollectionX509Certificate2Collection對象的物件中的憑證,請使用這個方法。 AddRangeRemoveRange 方法會以交易方式處理要求,因此,如果單一新增或移除失敗,則會中止整個作業。

適用於