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)
Syntax
bool TryParseUserId(
string userId,
out string providerName,
out string providerUserId
)
bool TryParseUserId(
String^ userId,
[OutAttribute] String^% providerName,
[OutAttribute] String^% providerUserId
)
abstract TryParseUserId :
userId:string *
providerName:string byref *
providerUserId:string byref -> bool
Function TryParseUserId (
userId As String,
<OutAttribute> ByRef providerName As String,
<OutAttribute> ByRef providerUserId As String
) As Boolean
Parameters
userId
Type: System.StringThe input value to parse.
providerName
Type: System.StringThe ILoginProvider name; or null if the userId is not valid.
providerUserId
Type: System.StringThe provider specific user id; or null is the userId is not valid.
Return Value
Type: System.Boolean
true if userId is valid; otherwise false /
See Also
IServiceTokenHandler Interface
Microsoft.WindowsAzure.Mobile.Service.Security Namespace
Return to top