Click or drag to resize

X509CertificatePolicyCollectionAdd Method

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public override void Add(
	X509CertificatePolicy entry
)

Parameters

entry
Type: System.Security.Cryptography.X509CertificatesX509CertificatePolicy
The X509CertificatePolicy object to add to the collection.

Return Value

Type: 
The index of the added X509CertificatePolicy object.

If the method return a negative number (-1), then collection already contains a duplicated policy OID. Duplicated OIDs are not allowed.

Implements

ICollectionTAdd(T)
Exceptions
ExceptionCondition
AccessViolationExceptionThe collection is closed and is read-only.
Remarks
Use this method to add an X509CertificatePolicy object to an existing collection at the current location.
See Also