共用方式為


DefaultHttpContext.Authentication 屬性

定義

警告

This is obsolete and will be removed in a future version. The recommended alternative is to use Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions. See https://go.microsoft.com/fwlink/?linkid=845470.

這已過時,未來版本將會移除。 建議的替代方法是使用 Microsoft.AspNetCore.Authentication.AuthenticationHttpCoNtextExtensions。 請參閱 https://go.microsoft.com/fwlink/?linkid=845470

public:
 virtual property Microsoft::AspNetCore::Http::Authentication::AuthenticationManager ^ Authentication { Microsoft::AspNetCore::Http::Authentication::AuthenticationManager ^ get(); };
public override Microsoft.AspNetCore.Http.Authentication.AuthenticationManager Authentication { get; }
[System.Obsolete("This is obsolete and will be removed in a future version. The recommended alternative is to use Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions. See https://go.microsoft.com/fwlink/?linkid=845470.")]
public override Microsoft.AspNetCore.Http.Authentication.AuthenticationManager Authentication { get; }
member this.Authentication : Microsoft.AspNetCore.Http.Authentication.AuthenticationManager
[<System.Obsolete("This is obsolete and will be removed in a future version. The recommended alternative is to use Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions. See https://go.microsoft.com/fwlink/?linkid=845470.")>]
member this.Authentication : Microsoft.AspNetCore.Http.Authentication.AuthenticationManager
Public Overrides ReadOnly Property Authentication As AuthenticationManager

屬性值

屬性

適用於