AsnEncodedData Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents Abstract Syntax Notation One (ASN.1)-encoded data.

Namespace:   System.Security.Cryptography
Assembly:  System (in System.dll)


type AsnEncodedData = class end

NameDescription
System_CAPS_protmethodAsnEncodedData()

Initializes a new instance of the AsnEncodedData class.

System_CAPS_pubmethodAsnEncodedData(AsnEncodedData)

Initializes a new instance of the AsnEncodedData class using an instance of the AsnEncodedData class.

System_CAPS_pubmethodAsnEncodedData(Byte[])

Initializes a new instance of the AsnEncodedData class using a byte array.

System_CAPS_pubmethodAsnEncodedData(Oid, Byte[])

Initializes a new instance of the AsnEncodedData class using an Oid object and a byte array.

System_CAPS_pubmethodAsnEncodedData(String, Byte[])

Initializes a new instance of the AsnEncodedData class using a byte array.

NameDescription
System_CAPS_pubpropertyOid

Gets or sets the Oid value for an AsnEncodedData object.

System_CAPS_pubpropertyRawData

Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.

NameDescription
System_CAPS_pubmethodCopyFrom(AsnEncodedData)

Copies information from an AsnEncodedData object.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFormat(Boolean)

Returns a formatted version of the Abstract Syntax Notation One (ASN.1)-encoded data as a string.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Abstract Syntax Notation One (ASN.1), which is defined in CCITT Recommendation X.208, is a way to specify abstract objects that will be serially transmitted. The set of ASN.1 rules for representing such objects as strings of ones and zeros is called the Distinguished Encoding Rules (DER), and is defined in CCITT Recommendation X.509, Section 8.7. These encoding methods are currently used by the cryptography namespace in the .NET Framework.

Note that if an unknown data type is encountered while accessing an instance of this class, data is returned as a hexadecimal string.

The following code example shows how to use the AsnEncodedData class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: