ServiceController Members

MSBuild

Task that can control a Windows service.


The following tables list the members exposed by ServiceController.

Public Constructors

  Name Description
Public method ServiceController Initializes a new instance of the T:ServiceController class.
Top

Public Properties

  Name Description
Public property Action Gets or sets the T:ServiceActions to perform on the service.
Public property BuildEngine Gets or sets the instance of the IBuildEngine object used by the task. (inherited from Task)
Public property CanPauseAndContinue Gets a value indicating whether the service can be paused and resumed. (inherited from ServiceQuery)
Public property CanShutdown Gets a value indicating whether the service should be notified when the system is shutting down. (inherited from ServiceQuery)
Public property CanStop Gets a value indicating whether the service can be stopped after it has started. (inherited from ServiceQuery)
Public property DisplayName Gets a friendly name for the service. (inherited from ServiceQuery)
Public property Exists Gets a value indicating whether the service exists. (inherited from ServiceQuery)
Public property HostObject Gets or sets the host object associated with the task. (inherited from Task)
Public property Log Gets an instance of a TaskLoggingHelper class containing task logging methods. (inherited from Task)
Public property MachineName Gets or sets the name of the machine. (inherited from ServiceQuery)
Public property ServiceName Gets or sets the name of the service. (inherited from ServiceQuery)
Public property Status Gets or sets the status. (inherited from ServiceQuery)
Public property Timeout Gets or sets the timeout for the command. The default is one minute.
Top

Protected Properties

  Name Description
Family property HelpKeywordPrefix Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task)
Family property TaskResources Gets or sets the culture-specific resources associated with the task. (inherited from Task)
Top

Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method Execute Overidden. Executes the task.
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method GetServiceController Gets the service controller. (inherited from ServiceQuery)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.