Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft