AuthenticationTokenExtensions.UpdateTokenValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpdateTokenValue(AuthenticationProperties, String, String) |
Updates the value of a token if already present. |
UpdateTokenValue(AuthenticationProperties, String, String) |
UpdateTokenValue(AuthenticationProperties, String, String)
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
Updates the value of a token if already present.
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
Parameters
- properties
- AuthenticationProperties
The AuthenticationProperties to update.
- tokenName
- String
The token name.
- tokenValue
- String
The token value.
Returns
true
if the token was updated, otherwise false
.
Applies to
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
Parameters
- properties
- AuthenticationProperties
- tokenName
- String
- tokenValue
- String