X509Certificate2Collection.RemoveRange Método

Definição

Remove vários objetos X509Certificate2 de um objeto X509Certificate2Collection.Removes multiple X509Certificate2 objects from an X509Certificate2Collection object.

Sobrecargas

RemoveRange(X509Certificate2[])

Remove vários objetos X509Certificate2 em uma matriz de um objeto X509Certificate2Collection.Removes multiple X509Certificate2 objects in an array from an X509Certificate2Collection object.

RemoveRange(X509Certificate2Collection)

Remove vários objetos X509Certificate2 em um objeto X509Certificate2Collection de outro objeto X509Certificate2Collection.Removes multiple X509Certificate2 objects in an X509Certificate2Collection object from another X509Certificate2Collection object.

RemoveRange(X509Certificate2[])

Remove vários objetos X509Certificate2 em uma matriz de um objeto X509Certificate2Collection.Removes multiple X509Certificate2 objects in an array from an X509Certificate2Collection object.

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

Parâmetros

certificates
X509Certificate2[]

Uma matriz de objetos de X509Certificate2.An array of X509Certificate2 objects.

Exceções

certificates é null.certificates is null.

Comentários

Use esse método se você tiver uma matriz de X509Certificate2 objetos para remover de um X509Certificate2Collection objeto.Use this method if you have an array of X509Certificate2 objects to remove from an X509Certificate2Collection object. Os AddRange RemoveRange métodos e processam as solicitações de forma transacional, de modo que, se uma única adição ou remoção falhar, a operação inteira será anulada.The AddRange and RemoveRange methods process requests transactionally, so that if a single add or remove fails, the entire operation is aborted.

Aplica-se a

RemoveRange(X509Certificate2Collection)

Remove vários objetos X509Certificate2 em um objeto X509Certificate2Collection de outro objeto X509Certificate2Collection.Removes multiple X509Certificate2 objects in an X509Certificate2Collection object from another X509Certificate2Collection object.

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)

Parâmetros

Exceções

certificates é null.certificates is null.

Comentários

Use esse método se você tiver certificados em um X509Certificate2Collection objeto que deseja remover de outro X509Certificate2Collection objeto.Use this method if you have certificates in an X509Certificate2Collection object that you want to remove from another X509Certificate2Collection object. Os AddRange RemoveRange métodos e processam as solicitações de forma transacional, de modo que, se uma única adição ou remoção falhar, a operação inteira será anulada.The AddRange and RemoveRange methods process requests transactionally, so that if a single add or remove fails, the entire operation is aborted.

Aplica-se a