共用方式為


X509Certificate2Collection.RemoveRange 方法

定義

移除 X509Certificate2 物件中的多個 X509Certificate2Collection 物件。

多載

RemoveRange(X509Certificate2[])

將陣列中的多個 X509Certificate2 物件從 X509Certificate2Collection 物件中移除。

RemoveRange(X509Certificate2Collection)

X509Certificate2 物件中的多個 X509Certificate2Collection 物件從另一個 X509Certificate2Collection 物件中移除。

RemoveRange(X509Certificate2[])

來源:
X509Certificate2Collection.cs
來源:
X509Certificate2Collection.cs
來源:
X509Certificate2Collection.cs

將陣列中的多個 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 物件的陣列。

例外狀況

certificatesnull

備註

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

適用於

RemoveRange(X509Certificate2Collection)

來源:
X509Certificate2Collection.cs
來源:
X509Certificate2Collection.cs
來源:
X509Certificate2Collection.cs

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)

參數

例外狀況

certificatesnull

備註

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

適用於