Partager via


ServiceBaseCommand.ShouldProcessServiceOperation Method

Definition

Overloads

ShouldProcessServiceOperation(ServiceController)

Confirm that the operation should proceed

ShouldProcessServiceOperation(String, String)

Confirm that the operation should proceed

ShouldProcessServiceOperation(ServiceController)

Confirm that the operation should proceed

protected:
 bool ShouldProcessServiceOperation(System::ServiceProcess::ServiceController ^ service);
protected bool ShouldProcessServiceOperation (System.ServiceProcess.ServiceController service);
member this.ShouldProcessServiceOperation : System.ServiceProcess.ServiceController -> bool
Protected Function ShouldProcessServiceOperation (service As ServiceController) As Boolean

Parameters

service
ServiceController

service object to be acted on

Returns

true if operation should continue, false otherwise

Applies to

ShouldProcessServiceOperation(String, String)

Confirm that the operation should proceed

protected:
 bool ShouldProcessServiceOperation(System::String ^ displayName, System::String ^ serviceName);
protected:
 bool ShouldProcessServiceOperation(Platform::String ^ displayName, Platform::String ^ serviceName);
bool ShouldProcessServiceOperation(std::wstring const & displayName, std::wstring const & serviceName);
protected bool ShouldProcessServiceOperation (string displayName, string serviceName);
member this.ShouldProcessServiceOperation : string * string -> bool
Protected Function ShouldProcessServiceOperation (displayName As String, serviceName As String) As Boolean

Parameters

displayName
String

display name of service to be acted on

serviceName
String

service name of service to be acted on

Returns

true if operation should continue, false otherwise

Applies to