Singer Instruments PIXL Client
CloseMotorisedDoor() Method
Example 



SI.PIXL.Client Namespace > PIXLClient Class > CloseMotorisedDoor Method : CloseMotorisedDoor() Method
Close the PIXL's motorised door.
Syntax
'Declaration
 
Public Overloads Function CloseMotorisedDoor() As Task(Of ApiCommandResponse)
'Usage
 
Dim instance As PIXLClient
Dim value As Task(Of ApiCommandResponse)
 
value = instance.CloseMotorisedDoor()
public Task<ApiCommandResponse> CloseMotorisedDoor()
public:
Task<ApiCommandResponse>^ CloseMotorisedDoor(); 

Return Value

The result of the action.
Example
This sample shows how to use the CloseMotorisedDoor method.
// Close the PIXL's motorised door.
var result = pixl.CloseMotorisedDoor();
            
// Display the result of the close operation based on if it was a success.
if (result.IsSuccess)
    Console.WriteLine("CloseMotorisedDoor complete.");
else
    Console.WriteLine($"CloseMotorisedDoor failed because {result.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