CookieSigningInContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CookieSigningInContext(HttpContext, AuthenticationScheme, CookieAuthenticationOptions, ClaimsPrincipal, AuthenticationProperties, CookieOptions)
建立內容物件的新執行個體。
public:
CookieSigningInContext(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authentication::AuthenticationScheme ^ scheme, Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^ options, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Http::CookieOptions ^ cookieOptions);
public CookieSigningInContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Http.CookieOptions cookieOptions);
public CookieSigningInContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties, Microsoft.AspNetCore.Http.CookieOptions cookieOptions);
new Microsoft.AspNetCore.Authentication.Cookies.CookieSigningInContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authentication.AuthenticationScheme * Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Http.CookieOptions -> Microsoft.AspNetCore.Authentication.Cookies.CookieSigningInContext
Public Sub New (context As HttpContext, scheme As AuthenticationScheme, options As CookieAuthenticationOptions, principal As ClaimsPrincipal, properties As AuthenticationProperties, cookieOptions As CookieOptions)
參數
- context
- HttpContext
HTTP 要求內容
- scheme
- AuthenticationScheme
配置資料
- options
- CookieAuthenticationOptions
處理常式選項
- principal
- ClaimsPrincipal
初始化 Principal 屬性
- properties
- AuthenticationProperties
驗證屬性。
- cookieOptions
- CookieOptions
初始化驗證 Cookie 的選項。
適用於
CookieSigningInContext(HttpContext, CookieAuthenticationOptions, String, ClaimsPrincipal, AuthenticationProperties, CookieOptions)
建立內容物件的新執行個體。
public:
CookieSigningInContext(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Builder::CookieAuthenticationOptions ^ options, System::String ^ authenticationScheme, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Http::CookieOptions ^ cookieOptions);
public CookieSigningInContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Builder.CookieAuthenticationOptions options, string authenticationScheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Http.CookieOptions cookieOptions);
new Microsoft.AspNetCore.Authentication.Cookies.CookieSigningInContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Builder.CookieAuthenticationOptions * string * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Http.CookieOptions -> Microsoft.AspNetCore.Authentication.Cookies.CookieSigningInContext
Public Sub New (context As HttpContext, options As CookieAuthenticationOptions, authenticationScheme As String, principal As ClaimsPrincipal, properties As AuthenticationProperties, cookieOptions As CookieOptions)
參數
- context
- HttpContext
HTTP 要求內容
- options
- CookieAuthenticationOptions
中介軟體選項
- authenticationScheme
- String
初始化 AuthenticationScheme 屬性
- principal
- ClaimsPrincipal
初始化 Principal 屬性
- properties
- AuthenticationProperties
初始化 Extra 屬性
- cookieOptions
- CookieOptions
初始化驗證 Cookie 的選項。