X509ExtensionCollection.Add Method (X509Extension)

 

Adds an X509Extension object to an X509ExtensionCollection object.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

public int Add(
	X509Extension extension
)

Return Value

Type: System.Int32

The index at which the extension parameter was added.

Exception Condition
ArgumentNullException

The value of the extension parameter is null.

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

.NET Framework
Available since 2.0
Return to top
Show: