Universal Windows Service Class Library

Service Methods

The methods of the Service class are listed below. For a complete list of Service class members, see the Service Members topic.

Public Static Methods

Main Main entry point for the process.

Public Instance Methods

CreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Dispose (inherited from Component)Overloaded. Releases all resources used by the Component.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object) Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
ToString (inherited from Component) 

Protected Instance Methods

Dispose (inherited from ServiceBase)Overloaded.  
Finalize (inherited from Component) Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
GetService (inherited from Component) Returns an object that represents a service provided by the Component or by its Container.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnContinue This function continue the service.
OnCustomCommand This function will be called from windows service management with a custom command message.
OnPause This function pause the service.
OnPowerEvent (inherited from ServiceBase) When implemented in a derived class, executes when the computer's power status has changed. This applies to laptop computers when they go into suspended mode, which is not the same as a system shutdown.
OnShutdown This function will be called from windows service management that computer is shutting down.
OnStart This function start a new working thread for the service.
OnStop This function stop the working thread of the service.

See Also

Service Class | uws Namespace | ServiceBase