X509ExtensionCollectionExtensionsDecode Method |
Decodes ASN.1-encoded byte array that represents a collection of X509Extension objects.
Namespace:
SysadminsLV.PKI.Utils.CLRExtensions
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public static void Decode(
this X509ExtensionCollection extensions,
byte[] rawData
)
<ExtensionAttribute>
Public Shared Sub Decode (
extensions As X509ExtensionCollection,
rawData As Byte()
)
public:
[ExtensionAttribute]
static void Decode(
X509ExtensionCollection^ extensions,
array<unsigned char>^ rawData
)
[<ExtensionAttribute>]
static member Decode :
extensions : X509ExtensionCollection *
rawData : byte[] -> unit
Parameters
- extensions
- Type: System.Security.Cryptography.X509CertificatesX509ExtensionCollection
Destination collection where decoded extensions will be added. - rawData
- Type: SystemByte
ASN.1-encoded byte array that represents extension collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
X509ExtensionCollection. 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 |
---|
Asn1InvalidTagException | Decoder encountered an unexpected ASN.1 type identifier. |
ArgumentNullException | extensions and/or rawData parameter is null.
|
Remarks If current collection contains items, decoded items will be appended to existing items.
See Also