This documentation is archived and is not being maintained.

CryptoConfig.MapNameToOID Method

Gets the object identifier (OID) of the algorithm corresponding to the specified simple name.

[Visual Basic]
Public Shared Function MapNameToOID( _
   ByVal name As String _
) As String
public static string MapNameToOID(
 string name
public: static String* MapNameToOID(
 String* name
public static function MapNameToOID(
   name : String
) : String;


The simple name of the algorithm for which to get the OID.

Return Value

The OID of the specified algorithm.


Exception Type Condition
ArgumentNullException The name parameter is a null reference (Nothing in Visual Basic).


For a list of simple names recognized by this class, see CryptoConfig.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CryptoConfig Class | CryptoConfig Members | System.Security.Cryptography Namespace | Cryptographic Services