CodeAccessSecurityAttribute(SecurityAction) 构造函数

定义

用指定的 CodeAccessSecurityAttribute 初始化 SecurityAction 的新实例。Initializes a new instance of CodeAccessSecurityAttribute with the specified SecurityAction.

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

参数

action
SecurityAction

SecurityAction 值之一。One of the SecurityAction values.

注解

不能创建此类的实例。You cannot create an instance of this class. 必须从此类继承,才能使用其功能。You must inherit from this class to make use of its functionality.

继承者说明

派生类必须只有一个采用 SecurityAction 作为其唯一参数的构造函数。Derived classes must have only one constructor that takes a SecurityAction as its only parameter.

适用于