AuthenticationTokenExtensions.GetTokenValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetTokenValue(AuthenticationProperties, String) |
傳回權杖的值。 |
GetTokenValue(AuthenticationProperties, String) |
GetTokenValue(AuthenticationProperties, String)
傳回權杖的值。
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetTokenValue(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::String ^ tokenName);
public static string GetTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName);
public static string? GetTokenValue (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName);
static member GetTokenValue : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> string
<Extension()>
Public Function GetTokenValue (properties As AuthenticationProperties, tokenName As String) As String
參數
- properties
- AuthenticationProperties
- tokenName
- String
權杖名稱。
傳回
權杖值。
適用於
GetTokenValue(AuthenticationProperties, String)
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetTokenValue(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::String ^ tokenName);
public static string GetTokenValue (this Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, string tokenName);
static member GetTokenValue : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> string
<Extension()>
Public Function GetTokenValue (properties As AuthenticationProperties, tokenName As String) As String
參數
- properties
- AuthenticationProperties
- tokenName
- String