PosCommon.State Property

2/27/2008

Gets the current state of the device.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property State As ControlState
public abstract ControlState State { get; }
public:
virtual property ControlState State {
    ControlState get () abstract;
}
/** @property */
public abstract ControlState get_State ()
public abstract function get State () : ControlState

Remarks

Possible values are defined by the ControlState enumeration.

State is set to ControlState.Idle by the Open method and is always readable, regardless of the state of the device. Changes in State cause POS for .NET to queue a StateChangedEvent event.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace