IServiceTokenHandler.TryParseUserId Method (String, String, String)

 

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.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Security
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

bool TryParseUserId(
	string userId,
	out string providerName,
	out string providerUserId
)

Parameters

userId
Type: System.String

The input value to parse.

providerName
Type: System.String

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

providerUserId
Type: System.String

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

Return Value

Type: System.Boolean

true if userId is valid; otherwise false /

Return to top
Show: