CryptographicAttributeObjectCollection.Add Method (CryptographicAttributeObject)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds the specified CryptographicAttributeObject object to the collection.

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

public int Add(
	CryptographicAttributeObject attribute
)

Parameters

attribute
Type: System.Security.Cryptography.CryptographicAttributeObject

The CryptographicAttributeObject object to add to the collection.

Return Value

Type: System.Int32

true if the method returns the zero-based index of the added item; otherwise, false.

Exception Condition
ArgumentNullException

asnEncodedData is null.

CryptographicException

A cryptographic operation could not be completed.

InvalidOperationException

The specified item already exists in the collection.

.NET Framework
Available since 2.0
Return to top
Show: