X509Certificate2ExtensionsResolveExtensions Method |
Converts generic X.509 extension objects to specialized certificate extension objects
inherited from X509Extension class that provide extension-specific information.
Namespace:
SysadminsLV.PKI.Utils.CLRExtensions
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public static X509ExtensionCollection ResolveExtensions(
this X509Certificate2 cert
)
<ExtensionAttribute>
Public Shared Function ResolveExtensions (
cert As X509Certificate2
) As X509ExtensionCollection
public:
[ExtensionAttribute]
static X509ExtensionCollection^ ResolveExtensions(
X509Certificate2^ cert
)
[<ExtensionAttribute>]
static member ResolveExtensions :
cert : X509Certificate2 -> X509ExtensionCollection
Parameters
- cert
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
Certificate.
Return Value
Type:
X509ExtensionCollectionA collection of certificate extensions
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.
|
Remarks
This method can transform the following X.509 certificate extensions:
Non-supported extensions will be returned as an
X509Extension object.
See Also