X509Certificate2CollectionExtensionsDecode Method |
Decodes ASN.1-encoded byte array that represents a collection of X509Certificate2 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 X509Certificate2Collection collection,
byte[] rawData
)
<ExtensionAttribute>
Public Shared Sub Decode (
collection As X509Certificate2Collection,
rawData As Byte()
)
public:
[ExtensionAttribute]
static void Decode(
X509Certificate2Collection^ collection,
array<unsigned char>^ rawData
)
[<ExtensionAttribute>]
static member Decode :
collection : X509Certificate2Collection *
rawData : byte[] -> unit
Parameters
- collection
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2Collection
Destination collection where decoded certificates will be added. - rawData
- Type: SystemByte
ASN.1-encoded byte array that represents certificate collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
X509Certificate2Collection. 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 | extensions and/or rawData parameter is null.
|
Remarks
If current collection contains items, decoded items will be appended to existing items.
This method is not the same as
X509Certificate2Collection.Import method and accepts ASN.1-style collection.
See Also