Bagikan melalui


X509Certificate2Collection.AddRange Metode

Definisi

Menambahkan beberapa X509Certificate2 objek ke objek X509Certificate2Collection .

Overload

AddRange(X509Certificate2[])

Menambahkan beberapa X509Certificate2 objek dalam array ke X509Certificate2Collection objek .

AddRange(X509Certificate2Collection)

Menambahkan beberapa X509Certificate2 objek dalam X509Certificate2Collection objek ke objek lain X509Certificate2Collection .

AddRange(X509Certificate2[])

Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs

Menambahkan beberapa X509Certificate2 objek dalam array ke X509Certificate2Collection objek .

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

Parameter

certificates
X509Certificate2[]

Array X509Certificate2 objek.

Pengecualian

certificatesadalah null.

Keterangan

Gunakan metode ini jika Anda memiliki array X509Certificate2 objek untuk ditambahkan ke X509Certificate2Collection objek. Metode AddRange dan RemoveRange memproses permintaan secara transaksional, sehingga jika satu penambahan atau penghapusan gagal, seluruh operasi dibatalkan.

Berlaku untuk

AddRange(X509Certificate2Collection)

Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs

Menambahkan beberapa X509Certificate2 objek dalam X509Certificate2Collection objek ke objek lain 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)

Parameter

Pengecualian

certificatesadalah null.

Keterangan

Gunakan metode ini jika Anda memiliki sertifikat dalam X509Certificate2Collection objek yang ingin Anda tambahkan ke objek lain X509Certificate2Collection . Metode AddRange dan RemoveRange memproses permintaan secara transaksional, sehingga jika satu penambahan atau penghapusan gagal, seluruh operasi dibatalkan.

Berlaku untuk