INGEAR.NET.MBLINK

 

Controller.ErrorString Property

Returns a string description of the last error encountered by the Controller class

[Visual Basic]
NotOverridable Public ReadOnly Property ErrorString As String _
    Implements IController.ErrorString
[C#]
public string ErrorString {get;}

Property Value

ResultCode

Implements

IController.ErrorString

Remarks

 

Example

VB
 Imports MBLink
 Dim MBDevice As New Controller()
 MBDevice.IPAddress = "192.168.1.45"
 MBDevice.Connect()
 If MBDevice.ErrorCode = ResultCode.E_SUCCESS Then
    MessageBox.Show("Connect Success")
 Else
    MessageBox.Show(MBDevice.ErrorString)
 End If
 
 C#
 Using MBLink;
 Controller MBDevice = new Controller()
 MBDevice.IPAddress = "192.168.1.45";
 MBDevice.Connect();
 if (MBDevice.ErrorCode == ResultCode.E_SUCCESS)
    MessageBox.Show("Connect Success");
 else
    MessageBox.Show(MBDevice.ErrorString);

See Also

Controller Class | MBLink Namespace | Connect | ErrorCode