4.7. IPeripheralConnectParser

An interface to provide functions to generate commands to get the connection/disconnection status of the peripheral.

This interface is only for models which support the peripheral. For the supporting models, refer to Supported Peripherals .

  • Member

    Name

    Contents

    isConnected

    Gets the connection/disconnection status of the peripheral.

4.7.1. isConnected

Gets the connection/disconnection status of the peripheral.

Executes after the Parse returns Success .

  • Declaration

    bool IsConnected { get; }
    
  • Parameter

    None

  • Return value

    Contents Type
    The connection/disconnection status of the peripheral. bool
  • Examples

    IPeripheralConnectParser parser = StarIoExt.CreateDisplayConnectParser(DisplayModel.SCD222);
    
    Communication.CommunicationResult result = Communication.ParseDoNotCheckCondition(parser, port);
    
    if (parser.IsConnected)
    {
        //処理
    }
    

    Refer to DisplaySamplePage.xaml.cs/DisplayExtSamplePage.xaml.cs.