Bagikan melalui


AuthenticationTokenExtensions.UpdateTokenValue Metode

Definisi

Overload

UpdateTokenValue(AuthenticationProperties, String, String)

Updates nilai token jika sudah ada.

UpdateTokenValue(AuthenticationProperties, String, String)

UpdateTokenValue(AuthenticationProperties, String, String)

Sumber:
TokenExtensions.cs
Sumber:
TokenExtensions.cs
Sumber:
TokenExtensions.cs

Updates nilai token jika sudah ada.

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

Parameter

properties
AuthenticationProperties

yang akan diperbarui AuthenticationProperties .

tokenName
String

Nama token.

tokenValue
String

Nilai token.

Mengembalikan

true jika token diperbarui, jika tidak false.

Berlaku untuk

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

Parameter

tokenName
String
tokenValue
String

Mengembalikan

Berlaku untuk