RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>.ConvertIdFromString Method

Definition

Converts the provided id to a strongly typed key object.

C#
public virtual TKey ConvertIdFromString (string id);
C#
public virtual TKey? ConvertIdFromString (string? id);

Parameters

id
String

The id to convert.

Returns

TKey

An instance of TKey representing the provided id.

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0