Click or drag to resize

X509ExtensionExtensionsEncode Method

Encodes current extension to ASN.1-encoded byte array.

Namespace:  SysadminsLV.PKI.Utils.CLRExtensions
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public static byte[] Encode(
	this X509Extension extension
)

Parameters

extension
Type: System.Security.Cryptography.X509CertificatesX509Extension
Extension to encode.

Return Value

Type: Byte

[Missing <returns> documentation for "M:SysadminsLV.PKI.Utils.CLRExtensions.X509ExtensionExtensions.Encode(System.Security.Cryptography.X509Certificates.X509Extension)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type X509Extension. 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
ExceptionCondition
ArgumentNullExceptionextension parameter is null.
UninitializedObjectExceptionExtension object is not properly initialized.
See Also