X509CertificatePolicyCollectionAdd Method

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public override void Add(
	X509CertificatePolicy entry
)

Parameters

entry  X509CertificatePolicy
The X509CertificatePolicy object to add to the collection.

Return Value

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)

Remarks

Use this method to add an X509CertificatePolicy object to an existing collection at the current location.

Exceptions

AccessViolationExceptionThe collection is closed and is read-only.

See Also