共用方式為


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 值。

適用於

另請參閱