EnvironmentPermissionAttribute(SecurityAction) 构造函数

定义

使用指定的 EnvironmentPermissionAttribute 初始化 SecurityAction 类的新实例。

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

参数

action
SecurityAction

SecurityAction 值之一。

例外

action 参数不是 SecurityAction 的有效值。

适用于