Bagikan melalui


X509Certificate2Collection.RemoveRange Metode

Definisi

Menghapus beberapa X509Certificate2 objek dari objek X509Certificate2Collection .

Overload

RemoveRange(X509Certificate2[])

Menghapus beberapa X509Certificate2 objek dalam array dari objek X509Certificate2Collection .

RemoveRange(X509Certificate2Collection)

Menghapus beberapa X509Certificate2 objek dalam objek X509Certificate2Collection dari objek lain X509Certificate2Collection .

RemoveRange(X509Certificate2[])

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

Menghapus beberapa X509Certificate2 objek dalam array dari objek 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())

Parameter

certificates
X509Certificate2[]

Array X509Certificate2 objek.

Pengecualian

certificatesadalah null.

Keterangan

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

Berlaku untuk

RemoveRange(X509Certificate2Collection)

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

Menghapus beberapa X509Certificate2 objek dalam objek X509Certificate2Collection dari objek lain 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)

Parameter

Pengecualian

certificatesadalah null.

Keterangan

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

Berlaku untuk