Udostępnij za pośrednictwem


AppServiceTokenHandler.TryParseUserId(String, String, String) Method

Definition

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

public virtual bool TryParseUserId (string userId, out string providerName, out string providerUserId);
abstract member TryParseUserId : string * string * string -> bool
override this.TryParseUserId : string * string * string -> bool
Public Overridable 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 login provider 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/

Implements

Applies to