Oid.FromOidValue Method (String, OidGroup)

.NET Framework (current version)
 
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.

Creates an Oid object by using the specified OID value and group.

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

public static Oid FromOidValue(
	string oidValue,
	OidGroup group
)

Parameters

oidValue
Type: System.String

The OID value.

group
Type: System.Security.Cryptography.OidGroup

The group to search in.

Return Value

Type: System.Security.Cryptography.Oid

A new instance of an Oid object.

Exception Condition
ArgumentNullException

oidValue is null.

CryptographicException

The friendly name for the OID value was not found.

.NET Framework
Available since 4.5
Return to top
Show: