AuthenticationTokenExtensions.UpdateTokenValue Méthode

Définition

Surcharges

UpdateTokenValue(AuthenticationProperties, String, String)

Mises à jour la valeur d’un jeton s’il est déjà présent.

UpdateTokenValue(AuthenticationProperties, String, String)

UpdateTokenValue(AuthenticationProperties, String, String)

Source:
TokenExtensions.cs
Source:
TokenExtensions.cs

Mises à jour la valeur d’un jeton s’il est déjà présent.

public:
[System::Runtime::CompilerServices::Extension]
 static bool UpdateTokenValue(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::String ^ tokenName, System::String ^ tokenValue);
public static bool UpdateTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName, string tokenValue);
static member UpdateTokenValue : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string * string -> bool
<Extension()>
Public Function UpdateTokenValue (properties As AuthenticationProperties, tokenName As String, tokenValue As String) As Boolean

Paramètres

properties
AuthenticationProperties

AuthenticationProperties à mettre à jour.

tokenName
String

Nom du jeton.

tokenValue
String

Valeur du jeton.

Retours

true si le jeton a été mis à jour, sinon false.

S’applique à

UpdateTokenValue(AuthenticationProperties, String, String)

public:
[System::Runtime::CompilerServices::Extension]
 static bool UpdateTokenValue(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::String ^ tokenName, System::String ^ tokenValue);
public static bool UpdateTokenValue (this Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, string tokenName, string tokenValue);
static member UpdateTokenValue : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string * string -> bool
<Extension()>
Public Function UpdateTokenValue (properties As AuthenticationProperties, tokenName As String, tokenValue As String) As Boolean

Paramètres

tokenName
String
tokenValue
String

Retours

S’applique à