OAuthWebSecurity.GetUserName(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the user ID for the specified OAuth or OpenID provider and provider user ID.
public static string GetUserName (string providerName, string providerUserId);
static member GetUserName : string * string -> string
Public Shared Function GetUserName (providerName As String, providerUserId As String) As String
Parameters
- providerName
- String
The provider name.
- providerUserId
- String
The user ID for the specified provider.
Returns
The user ID, or null if there is no user ID associated with the OAuth or Open ID provider user ID.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for