AuthenticationTokenExtensions.StoreTokens 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>) |
删除任何旧令牌后,存储一组身份验证令牌。 |
StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>) |
StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
- Source:
- TokenExtensions.cs
删除任何旧令牌后,存储一组身份验证令牌。
public:
[System::Runtime::CompilerServices::Extension]
static void StoreTokens(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authentication::AuthenticationToken ^> ^ tokens);
public static void StoreTokens (this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.AuthenticationToken> tokens);
static member StoreTokens : Microsoft.AspNetCore.Authentication.AuthenticationProperties * seq<Microsoft.AspNetCore.Authentication.AuthenticationToken> -> unit
<Extension()>
Public Sub StoreTokens (properties As AuthenticationProperties, tokens As IEnumerable(Of AuthenticationToken))
参数
- properties
- AuthenticationProperties
- tokens
- IEnumerable<AuthenticationToken>
要存储的令牌。
适用于
StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)
public:
[System::Runtime::CompilerServices::Extension]
static void StoreTokens(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authentication::AuthenticationToken ^> ^ tokens);
public static void StoreTokens (this Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.AuthenticationToken> tokens);
static member StoreTokens : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * seq<Microsoft.AspNetCore.Authentication.AuthenticationToken> -> unit
<Extension()>
Public Sub StoreTokens (properties As AuthenticationProperties, tokens As IEnumerable(Of AuthenticationToken))
参数
- properties
- AuthenticationProperties
- tokens
- IEnumerable<AuthenticationToken>