Decodes the specified extension and returns an object of the specified type that is instantiated with the decoded bytes.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public static Object DecodeExtension(
Extension extension,
int oid,
Type returnType
) |
Visual Basic |
---|
Public Shared Function DecodeExtension ( _
extension As Extension, _
oid As Integer, _
returnType As Type _
) As Object |
Visual C++ |
---|
public:
static Object^ DecodeExtension(
Extension^ extension,
int oid,
Type^ returnType
) |
Parameters
- extension
- Type: LLCryptoLib.Security.Certificates..::..Extension
The certificate extension to decode.
- oid
- Type: System..::..Int32
One of the predefined constants specified in the Win32 CryptoAPI. Refer to the documentation of the CryptDecodeObject function for more information.
- returnType
- Type: System..::..Type
A Type instance. See remarks.
Return Value
An object of the type
returnType.
Remarks
Exceptions
See Also