CookieAuthenticationOptions.TicketDataFormat 属性

定义

TicketDataFormat 用于保护和取消保护身份和其他存储在 Cookie 值中的属性。 如果未提供,则使用 IApplicationBuilder.Properties 中包含的数据保护服务创建默认数据处理程序。 运行在 ASP.NET 和 DPAPI(在不同进程中运行时)上时,默认的数据保护服务将基于计算机密钥。

public:
 property Microsoft::AspNetCore::Authentication::ISecureDataFormat<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ TicketDataFormat { Microsoft::AspNetCore::Authentication::ISecureDataFormat<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ get(); void set(Microsoft::AspNetCore::Authentication::ISecureDataFormat<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ value); };
public Microsoft.AspNetCore.Authentication.ISecureDataFormat<Microsoft.AspNetCore.Authentication.AuthenticationTicket> TicketDataFormat { get; set; }
member this.TicketDataFormat : Microsoft.AspNetCore.Authentication.ISecureDataFormat<Microsoft.AspNetCore.Authentication.AuthenticationTicket> with get, set
Public Property TicketDataFormat As ISecureDataFormat(Of AuthenticationTicket)

属性值

适用于