AuthenticationTokenExtensions.GetTokenValue 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.
Overloads
GetTokenValue(AuthenticationProperties, String) |
Returns the value of a token. |
GetTokenValue(AuthenticationProperties, String) |
GetTokenValue(AuthenticationProperties, String)
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
Returns the value of a token.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetTokenValue(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::String ^ tokenName);
public static string GetTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName);
public static string? GetTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName);
static member GetTokenValue : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> string
<Extension()>
Public Function GetTokenValue (properties As AuthenticationProperties, tokenName As String) As String
Parameters
- properties
- AuthenticationProperties
The AuthenticationProperties properties.
- tokenName
- String
The token name.
Returns
The token value.
Applies to
GetTokenValue(AuthenticationProperties, String)
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetTokenValue(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::String ^ tokenName);
public static string GetTokenValue (this Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, string tokenName);
static member GetTokenValue : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> string
<Extension()>
Public Function GetTokenValue (properties As AuthenticationProperties, tokenName As String) As String
Parameters
- properties
- AuthenticationProperties
- tokenName
- String