X509ExtensionCollectionExtensionsDecode(X509ExtensionCollection, Byte) Method

Decodes ASN.1-encoded byte array that represents a collection of X509Extension objects.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static void Decode(
	this X509ExtensionCollection extensions,
	byte[] rawData
)

Parameters

extensions  X509ExtensionCollection
Destination collection where decoded extensions will be added.
rawData  Byte
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).

Remarks

If current collection contains items, decoded items will be appended to existing items.

Exceptions

Asn1InvalidTagExceptionDecoder encountered an unexpected ASN.1 type identifier.
ArgumentNullExceptionextensions and/or rawData parameter is null.

See Also