AspNetHostingPermissionAttribute(SecurityAction) 建構函式

定義

初始化 AspNetHostingPermissionAttribute 類別的新執行個體。Initializes a new instance of the AspNetHostingPermissionAttribute class.

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 列舉值。One of the SecurityAction enumeration values.

適用於