|   | Service | 
 Inheritance Hierarchy
Inheritance Hierarchy
         Syntax
Syntaxpublic class ServiceProcess : IDisposable, IProvideStatus
The ServiceProcess type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | ServiceProcess | Initializes a new instance of the ServiceProcess class. | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | Arguments | Gets or sets the arguments to be passed in to the ExecutionMethod. | 
|  | CurrentState | Gets the current ServiceProcessState. | 
|  | ExecutionMethod | Gets or sets the Delegate that gets invoked when Start is called. | 
|  | ExecutionStartTime | Gets the DateTime when execution of ServiceProcess last started. | 
|  | ExecutionStopTime | Gets the DateTime when execution of ServiceProcess last completed. | 
|  | LastExecutionTime | Gets the Time taken by the ServiceProcess during the last execution. | 
|  | Name | Gets or sets the name of the ServiceProcess. | 
|  | Status | Gets the descriptive status of the ServiceProcess. | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Abort | Stops the execution of ServiceProcess if it executing. | 
|  | Dispose | Releases all the resources used by the ServiceProcess object. | 
|  | Dispose(Boolean) | Releases the unmanaged resources used by the ServiceProcess and optionally releases the managed resources. | 
|  | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | 
|  | Finalize | Releases the unmanaged resources before the ServiceProcess object is reclaimed by GC. (Overrides ObjectFinalize) | 
|  | GetHashCode | Serves as the default hash function. (Inherited from Object) | 
|  | GetType | Gets the Type of the current instance. (Inherited from Object) | 
|  | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | 
|  | OnStateChanged | Raises the StateChanged event. | 
|  | Start | Starts the execution of ServiceProcess. | 
|  | Start(Object) | Starts the execution of ServiceProcess. | 
|  | ToString | Returns a string that represents the current object. (Inherited from Object) | 
 Events
Events| Name | Description | |
|---|---|---|
|  | StateChanged | Occurs when the CurrentState of the ServiceProcess changes. | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | GetEnumValueOrDefault | Gets the enumeration constant for value, if defined in the enumeration, or a default value. (Defined by EnumExtensions) | 
|  | GetEnumValueOrDefaultT | Gets the enumeration constant for this value, if defined in the enumeration, or a default value. (Defined by EnumExtensions) | 
 See Also
See Also