X509ExtensionCollectionExtensionsEncode Method
Encodes existing collection of
X509Extension objects to ASN.1-encoded byte array.
Namespace: SysadminsLV.PKI.Cryptography.X509CertificatesAssembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
public static byte[] Encode(
this X509ExtensionCollection extensions,
byte enclosingTag = 48
)
<ExtensionAttribute>
Public Shared Function Encode (
extensions As X509ExtensionCollection,
Optional enclosingTag As Byte = 48
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ Encode(
X509ExtensionCollection^ extensions,
unsigned char enclosingTag = 48
)
[<ExtensionAttribute>]
static member Encode :
extensions : X509ExtensionCollection *
?enclosingTag : byte
(* Defaults:
let _enclosingTag = defaultArg enclosingTag 48
*)
-> byte[]
- extensions X509ExtensionCollection
- Extension collection to encode.
- enclosingTag Byte (Optional)
-
Outer ASN.1 type. Default is SEQUENCE.
ByteASN.1-encoded byte array.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).