共用方式為


AuthorizationOptions.DefaultPolicy 屬性

定義

取得或設定預設授權原則。 預設為需要已驗證的使用者。

public:
 property Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ DefaultPolicy { Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ get(); void set(Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ value); };
public Microsoft.AspNetCore.Authorization.AuthorizationPolicy DefaultPolicy { get; set; }
member this.DefaultPolicy : Microsoft.AspNetCore.Authorization.AuthorizationPolicy with get, set
Public Property DefaultPolicy As AuthorizationPolicy

屬性值

備註

評估 IAuthorizeData 時使用的預設原則,未指定任何原則名稱。

適用於