Edit

Share via


Oid.FromOidValue(String, OidGroup) Method

Definition

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

public:
 static System::Security::Cryptography::Oid ^ FromOidValue(System::String ^ oidValue, System::Security::Cryptography::OidGroup group);
public static System.Security.Cryptography.Oid FromOidValue (string oidValue, System.Security.Cryptography.OidGroup group);
static member FromOidValue : string * System.Security.Cryptography.OidGroup -> System.Security.Cryptography.Oid
Public Shared Function FromOidValue (oidValue As String, group As OidGroup) As Oid

Parameters

oidValue
String

The OID value.

group
OidGroup

The group to search in.

Returns

Oid

A new instance of an Oid object.

Exceptions

oidValue is null.

The friendly name for the OID value was not found.

Applies to