X509ExtensionCollection.Add(X509Extension) X509ExtensionCollection.Add(X509Extension) X509ExtensionCollection.Add(X509Extension) X509ExtensionCollection.Add(X509Extension) Method

Definition

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

Parameters

Returns

The index at which the extension parameter was added.

Exceptions

Remarks

The Add method allows duplicate elements to be added to the collection.

Applies to