X509Certificate2Collection.RemoveRange 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除 X509Certificate2 物件中的多個 X509Certificate2Collection 物件。
多載
RemoveRange(X509Certificate2[]) |
將陣列中的多個 X509Certificate2 物件從 X509Certificate2Collection 物件中移除。 |
RemoveRange(X509Certificate2Collection) |
將 X509Certificate2 物件中的多個 X509Certificate2Collection 物件從另一個 X509Certificate2Collection 物件中移除。 |
RemoveRange(X509Certificate2[])
將陣列中的多個 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 物件的陣列。
例外狀況
certificates
為 null
。
備註
如果您有要從 X509Certificate2Collection 物件中移除的物件X509Certificate2數位,請使用這個方法。 AddRange和 RemoveRange 方法會以交易方式處理要求,因此,如果單一新增或移除失敗,則會中止整個作業。
適用於
RemoveRange(X509Certificate2Collection)
將 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)
參數
- certificates
- X509Certificate2Collection
例外狀況
certificates
為 null
。
備註
如果您有想要從另一個X509Certificate2CollectionX509Certificate2Collection物件移除的 物件中的憑證,請使用這個方法。 AddRange和 RemoveRange 方法會以交易方式處理要求,因此,如果單一新增或移除失敗,則會中止整個作業。