X509ExtensionCollection.Add(X509Extension) Método

Definição

Adiciona um objeto X509Extension a um objeto X509ExtensionCollection.Adds an X509Extension object to an X509ExtensionCollection object.

public:
 int Add(System::Security::Cryptography::X509Certificates::X509Extension ^ extension);
public int Add (System.Security.Cryptography.X509Certificates.X509Extension extension);
member this.Add : System.Security.Cryptography.X509Certificates.X509Extension -> int
Public Function Add (extension As X509Extension) As Integer

Parâmetros

extension
X509Extension

Um objeto X509Extension a ser adicionado ao objeto X509ExtensionCollection.An X509Extension object to add to the X509ExtensionCollection object.

Retornos

O índice no qual o parâmetro extension foi adicionado.The index at which the extension parameter was added.

Exceções

O valor do parâmetro extension é null.The value of the extension parameter is null.

Comentários

O método Add permite que elementos duplicados sejam adicionados à coleção.The Add method allows duplicate elements to be added to the collection.

Aplica-se a