共用方式為


AspNetHostingPermissionAttribute(SecurityAction) 建構函式

定義

初始化 AspNetHostingPermissionAttribute 類別的新執行個體。

public:
 AspNetHostingPermissionAttribute(System::Security::Permissions::SecurityAction action);
public AspNetHostingPermissionAttribute (System.Security.Permissions.SecurityAction action);
new System.Web.AspNetHostingPermissionAttribute : System.Security.Permissions.SecurityAction -> System.Web.AspNetHostingPermissionAttribute
Public Sub New (action As SecurityAction)

參數

action
SecurityAction

其中一個 SecurityAction 列舉值。

適用於