AuthenticationTokenExtensions.UpdateTokenValue Method

Definition

Overloads

UpdateTokenValue(AuthenticationProperties, String, String)

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

Updates the value of a token if already present.

C#
public static bool UpdateTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName, string tokenValue);

Parameters

tokenName
String

The token name.

tokenValue
String

The token value.

Returns

true if the token was updated, otherwise false.

Applies to

ASP.NET Core 9.0 an aner Versiounen
Produkt Versiounen
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

UpdateTokenValue(AuthenticationProperties, String, String)

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

Parameters

tokenName
String
tokenValue
String

Returns

Applies to

ASP.NET Core 1.1
Produkt Versiounen
ASP.NET Core 1.1