Singer Instruments PIXL Client
RunUVSterilisation(Int32,ApiCommandResponseCallback) Method
Example 



SI.PIXL.Client Namespace > PIXLClient Class > RunUVSterilisation Method : RunUVSterilisation(Int32,ApiCommandResponseCallback) Method
The number of minutes to run sterilisation for.
A callback to invoke when the command has finished execution.
Run UV sterilisation.
Syntax
'Declaration
 
Public Overloads Function RunUVSterilisation( _
   ByVal minutes As Integer, _
   ByVal callback As ApiCommandResponseCallback _
) As Task
'Usage
 
Dim instance As PIXLClient
Dim minutes As Integer
Dim callback As ApiCommandResponseCallback
Dim value As Task
 
value = instance.RunUVSterilisation(minutes, callback)
public Task RunUVSterilisation( 
   int minutes,
   ApiCommandResponseCallback callback
)
public:
Task^ RunUVSterilisation( 
   int minutes,
   ApiCommandResponseCallback^ callback
) 

Parameters

minutes
The number of minutes to run sterilisation for.
callback
A callback to invoke when the command has finished execution.

Return Value

The result of the action.
Example
This sample shows how to use the RunUVSterilisation(Int32,ApiCommandResponseCallback) method.
// Run sterilisation for 20 minutes and display the result on the console.
pixl.RunUVSterilisation(20, x => Console.WriteLine(x.Message));
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PIXLClient Class
PIXLClient Members
Overload List