AuthenticationTokenExtensions.UpdateTokenValue Method
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.
UpdateTokenValue(AuthenticationProperties, String, String) |
Updates the value of a token if already present. |
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);
C#
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
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 |
public:
[System::Runtime::CompilerServices::Extension]
static bool UpdateTokenValue(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::String ^ tokenName, System::String ^ tokenValue);
C#
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
Returns
Applies to
ASP.NET Core 1.1
Produkt | Versiounen |
---|---|
ASP.NET Core | 1.1 |