共用方式為


CookieSignedInContext 建構函式

定義

多載

CookieSignedInContext(HttpContext, AuthenticationScheme, ClaimsPrincipal, AuthenticationProperties, CookieAuthenticationOptions)

建立內容物件的新執行個體。

CookieSignedInContext(HttpContext, CookieAuthenticationOptions, String, ClaimsPrincipal, AuthenticationProperties)

建立內容物件的新執行個體。

CookieSignedInContext(HttpContext, AuthenticationScheme, ClaimsPrincipal, AuthenticationProperties, CookieAuthenticationOptions)

來源:
CookieSignedInContext.cs
來源:
CookieSignedInContext.cs
來源:
CookieSignedInContext.cs

建立內容物件的新執行個體。

public:
 CookieSignedInContext(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authentication::AuthenticationScheme ^ scheme, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^ options);
public CookieSignedInContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options);
public CookieSignedInContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options);
new Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authentication.AuthenticationScheme * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions -> Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext
Public Sub New (context As HttpContext, scheme As AuthenticationScheme, principal As ClaimsPrincipal, properties As AuthenticationProperties, options As CookieAuthenticationOptions)

參數

context
HttpContext

HTTP 要求內容

scheme
AuthenticationScheme

配置資料

principal
ClaimsPrincipal

初始化 Principal 屬性

properties
AuthenticationProperties

初始化 Properties 屬性

options
CookieAuthenticationOptions

處理常式選項

適用於

CookieSignedInContext(HttpContext, CookieAuthenticationOptions, String, ClaimsPrincipal, AuthenticationProperties)

建立內容物件的新執行個體。

public:
 CookieSignedInContext(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Builder::CookieAuthenticationOptions ^ options, System::String ^ authenticationScheme, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
public CookieSignedInContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Builder.CookieAuthenticationOptions options, string authenticationScheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
new Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Builder.CookieAuthenticationOptions * string * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext
Public Sub New (context As HttpContext, options As CookieAuthenticationOptions, authenticationScheme As String, principal As ClaimsPrincipal, properties As AuthenticationProperties)

參數

context
HttpContext

HTTP 要求內容

options
CookieAuthenticationOptions

中介軟體選項

authenticationScheme
String

初始化 AuthenticationScheme 屬性

principal
ClaimsPrincipal

初始化 Principal 屬性

properties
AuthenticationProperties

初始化 Properties 屬性

適用於