共用方式為


SecurityPermissionAttribute(SecurityAction) 建構函式

定義

使用指定的 SecurityPermissionAttribute 初始化 SecurityAction 類別的新執行個體。

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

參數

action
SecurityAction

其中一個 SecurityAction 值。

適用於