AuthenticationTokenExtensions.GetTokenValue Method

Definition

Overloads

GetTokenValue(AuthenticationProperties, String)

Source:
TokenExtensions.cs
Source:
TokenExtensions.cs
Source:
TokenExtensions.cs

Returns the value of a token.

C#
public static string GetTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName);
C#
public static string? GetTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName);

Parameters

tokenName
String

The token name.

Returns

The token value.

Applies to

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

GetTokenValue(AuthenticationProperties, String)

C#
public static string GetTokenValue (this Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, string tokenName);

Parameters

tokenName
String

Returns

Applies to

ASP.NET Core 1.1 och ASP.NET Core 1.0
Produkt Versioner
ASP.NET Core 1.0, 1.1