Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CryptoConfig::EncodeOID Method (String^)

 

Encodes the specified object identifier (OID).

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

public:
static array<unsigned char>^ EncodeOID(
	String^ str
)

Parameters

str
Type: System::String^

The OID to encode.

Return Value

Type: array<System::Byte>^

A byte array containing the encoded OID.

Exception Condition
ArgumentNullException

The str parameter is null.

CryptographicUnexpectedOperationException

An error occurred while encoding the OID.

The following code example demonstrates how to call the EncodeOID method to encode the specified object identifier. This code example is part of a larger example provided for the CryptoConfig class.

array<Byte>^encodedMessage = CryptoConfig::EncodeOID( sha1Oid );

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft