Singer Instruments PIXL Client
CloseMotorisedDoor(ApiCommandResponseCallback) Method
Example 



SI.PIXL.Client Namespace > PIXLClient Class > CloseMotorisedDoor Method : CloseMotorisedDoor(ApiCommandResponseCallback) Method
A callback to invoke when the command has finished execution.
Close the PIXL's motorised door.
Syntax
'Declaration
 
Public Overloads Function CloseMotorisedDoor( _
   ByVal callback As ApiCommandResponseCallback _
) As Task
'Usage
 
Dim instance As PIXLClient
Dim callback As ApiCommandResponseCallback
Dim value As Task
 
value = instance.CloseMotorisedDoor(callback)
public Task CloseMotorisedDoor( 
   ApiCommandResponseCallback callback
)
public:
Task^ CloseMotorisedDoor( 
   ApiCommandResponseCallback^ callback
) 

Parameters

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 CloseMotorisedDoor(ApiCommandResponseCallback) method.
// Close the PIXL's motorised door.
pixl.CloseMotorisedDoor(x => Console.WriteLine(x => 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