Gets the attached status of this Phidget.
Namespace:
PhidgetsAssembly: Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34
Syntax
C# |
---|
public bool Attached { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property Attached As Boolean |
Visual C++ |
---|
public: property bool Attached { bool get (); } |
Remarks
This method returns True or False, depending on whether the Phidget is phisically plugged into the computer, initialized, and ready to use - or not.
If a Phidget is not attached, many functions calls will fail with a PhidgetException, so either checking this function, or using the Attach and Detach events,
is recommended, if a device is likely to be attached or detached during use.