Compartir a través de


X509Certificate2Collection.AddRange Método

Definición

Agrega varios objetos X509Certificate2 a un objeto X509Certificate2Collection.

Sobrecargas

AddRange(X509Certificate2[])

Agrega varios objetos X509Certificate2 de una matriz al objeto X509Certificate2Collection.

AddRange(X509Certificate2Collection)

Agrega varios objetos X509Certificate2 de un objeto X509Certificate2Collection a otro objeto X509Certificate2Collection.

AddRange(X509Certificate2[])

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

Agrega varios objetos X509Certificate2 de una matriz al objeto X509Certificate2Collection.

public:
 void AddRange(cli::array <System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ certificates);
public void AddRange (System.Security.Cryptography.X509Certificates.X509Certificate2[] certificates);
override this.AddRange : System.Security.Cryptography.X509Certificates.X509Certificate2[] -> unit
Public Sub AddRange (certificates As X509Certificate2())

Parámetros

certificates
X509Certificate2[]

Matriz de objetos X509Certificate2.

Excepciones

certificates es null.

Comentarios

Use este método si tiene una matriz de X509Certificate2 objetos para agregar a 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

AddRange(X509Certificate2Collection)

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

Agrega varios objetos X509Certificate2 de un objeto X509Certificate2Collection a otro objeto X509Certificate2Collection.

public:
 void AddRange(System::Security::Cryptography::X509Certificates::X509Certificate2Collection ^ certificates);
public void AddRange (System.Security.Cryptography.X509Certificates.X509Certificate2Collection certificates);
override this.AddRange : System.Security.Cryptography.X509Certificates.X509Certificate2Collection -> unit
Public Sub AddRange (certificates As X509Certificate2Collection)

Parámetros

Excepciones

certificates es null.

Comentarios

Use este método si tiene certificados en un X509Certificate2Collection objeto que desea agregar a 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