Universal Windows Service Class Library

Service Members

Service overview

Public Static Methods

Main Main entry point for the process.

Public Instance Constructors

Service Constructor Default constructor of the service class.

Public Instance Properties

AutoLog (inherited from ServiceBase) Indicates whether to report Start, Stop, Pause, and Continue commands in the event log.
CanHandlePowerEvent (inherited from ServiceBase) Gets or sets a value indicating whether the service can handle notifications of computer power status changes.
CanPauseAndContinue (inherited from ServiceBase) Gets or sets a value indicating whether the service can be paused and resumed.
CanShutdown (inherited from ServiceBase) Gets or sets a value indicating whether the service should be notified when the system is shutting down.
CanStop (inherited from ServiceBase) Gets or sets a value indicating whether the service can be stopped once it has started.
Container (inherited from Component) Gets the IContainer that contains the Component.
EventLog (inherited from ServiceBase) Gets an event log you can use to write notification of service command calls, such as Start and Stop, to the Application event log.
ServiceName (inherited from ServiceBase) Gets or sets the short name used to identify the service to the system.
Site (inherited from Component) Gets or sets the ISite of the Component.

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) 

Public Instance Events

Disposed (inherited from Component) Adds an event handler to listen to the Disposed event on the component.

Protected Instance Properties

DesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
Events (inherited from Component) Gets the list of event handlers that are attached to this 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