Compartir a través de


X509Certificate2Collection.RemoveRange Método

Definición

Quita varios objetos X509Certificate2 de un objeto X509Certificate2Collection.

Sobrecargas

RemoveRange(X509Certificate2[])

Quita de un objeto X509Certificate2 varios objetos X509Certificate2Collection contenidos en una matriz.

RemoveRange(X509Certificate2Collection)

Quita varios objetos X509Certificate2 contenidos en un objeto X509Certificate2Collection de otro objeto X509Certificate2Collection.

RemoveRange(X509Certificate2[])

Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs

Quita de un objeto X509Certificate2 varios objetos X509Certificate2Collection contenidos en una matriz.

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[]

Matriz de objetos X509Certificate2.

Excepciones

certificates es null.

Comentarios

Utilice este método si tiene una matriz de X509Certificate2 objetos para quitar de un X509Certificate2Collection objeto . Los AddRange métodos y RemoveRange procesan las solicitudes transaccionalmente, de modo que si se produce un error en una única adición o eliminación, se anula toda la operación.

Se aplica a

RemoveRange(X509Certificate2Collection)

Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs

Quita varios objetos X509Certificate2 contenidos en un objeto X509Certificate2Collection de otro objeto 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)

Parámetros

Excepciones

certificates es null.

Comentarios

Use este método si tiene certificados en un X509Certificate2Collection objeto que desea quitar de otro X509Certificate2Collection objeto. Los AddRange métodos y RemoveRange procesan las solicitudes transaccionalmente, de modo que si se produce un error en una única adición o eliminación, se anula toda la operación.

Se aplica a