Show / Hide Table of Contents

GetByOid Method

GetByOid(Oid)

Gets a key definition by its object identifier (OID).

C#
public static KeyDefinition GetByOid(Oid oid)

Parameters

Type Name Description
Oid oid

The object identifier (OID) of the key.

Returns

KeyDefinition

The key definition for the specified OID.

Exceptions

Type Condition
NotSupportedException

When the OID is not supported or when the OID is for an RSA key.

GetByOid(string)

Gets a key definition by its object identifier (OID).

C#
public static KeyDefinition GetByOid(string oid)

Parameters

Type Name Description
string oid

The object identifier (OID) of the key.

Returns

KeyDefinition

The key definition for the specified OID.

Exceptions

Type Condition
NotSupportedException

When the OID is not supported or when the OID is for an RSA key.

In this article
Back to top Generated by DocFX