IServiceTokenHandler.TryParseUserId(String, String, String) Method

Definition

Parses a user id into its two components: a ProviderName which uniquely identifies the ILoginProvider and the ProviderId which identifies the provider specific id for a given user.

public bool TryParseUserId (string userId, out string providerName, out string providerUserId);
abstract member TryParseUserId : string * string * string -> bool
Public Function TryParseUserId (userId As String, ByRef providerName As String, ByRef providerUserId As String) As Boolean

Parameters

userId
String

The input value to parse.

providerName
String

The ILoginProvider name; or null if the userId is not valid.

providerUserId
String

The provider specific user id; or null is the userId is not valid.

Returns

true if userId is valid; otherwise false/

Applies to