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
)
Public Overrides Sub Add (
entry As X509CertificatePolicy
)
public:
virtual void Add(
X509CertificatePolicy^ entry
) override
abstract Add :
entry : X509CertificatePolicy -> unit
override Add :
entry : X509CertificatePolicy -> unit
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 Exception | Condition |
---|
AccessViolationException | The 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