X509Certificate2ExtensionsGetCertificateContextProperties Method |
Gets a collection of certificate context properties associated with the current certificate. If no
property is associated, an empty collection will be returned.
Namespace:
SysadminsLV.PKI.Utils.CLRExtensions
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public static X509CertificateContextPropertyCollection GetCertificateContextProperties(
this X509Certificate2 cert
)
<ExtensionAttribute>
Public Shared Function GetCertificateContextProperties (
cert As X509Certificate2
) As X509CertificateContextPropertyCollection
public:
[ExtensionAttribute]
static X509CertificateContextPropertyCollection^ GetCertificateContextProperties(
X509Certificate2^ cert
)
[<ExtensionAttribute>]
static member GetCertificateContextProperties :
cert : X509Certificate2 -> X509CertificateContextPropertyCollection
Parameters
- cert
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
Certificate.
Return Value
Type:
X509CertificateContextPropertyCollectionA collection of certificate context properties.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
X509Certificate2. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ArgumentNullException | cert parameter is null reference.
|
UninitializedObjectException |
Certificate object is not initialized and is empty.
|
See Also