ServiceControllerPermissionAttribute(SecurityAction) 构造函数

定义

初始化 ServiceControllerPermissionAttribute 类的新实例。

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

参数

action
SecurityAction

SecurityAction 值之一。

适用于

另请参阅