SecurityAttribute(SecurityAction) 构造函数

定义

用指定的 SecurityAttribute 初始化 SecurityAction 的新实例。

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

参数

action
SecurityAction

SecurityAction 值之一。

注解

不能创建此类的实例。 必须从此类继承才能使用其功能。 的值 action 用于设置 Action 属性。

适用于