AuthenticationTokenExtensions.UpdateTokenValue Метод

Определение

Перегрузки

UpdateTokenValue(AuthenticationProperties, String, String)

Обновления значение маркера, если он уже имеется.

UpdateTokenValue(AuthenticationProperties, String, String)

UpdateTokenValue(AuthenticationProperties, String, String)

Обновления значение маркера, если он уже имеется.

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

Параметры

properties
AuthenticationProperties

Объект AuthenticationProperties, который требуется обновить.

tokenName
String

Имя маркера.

tokenValue
String

Значение токена.

Возвращаемое значение

true Значение , если маркер был обновлен; в противном случае — falseзначение .

Применяется к

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

Параметры

tokenName
String
tokenValue
String

Возвращаемое значение

Применяется к