Share via


PosCommon.DirectIO Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Used to communicate directly with the Service Object.

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

Syntax

'Declaration
Public MustOverride Function DirectIO ( _
    command As Integer, _
    data As Integer, _
    obj As Object _
) As DirectIOData
public abstract DirectIOData DirectIO (
    int command,
    int data,
    Object obj
)
public:
virtual DirectIOData DirectIO (
    int command, 
    int data, 
    Object^ obj
) abstract
public abstract DirectIOData DirectIO (
    int command, 
    int data, 
    Object obj
)
public abstract function DirectIO (
    command : int, 
    data : int, 
    obj : Object
) : DirectIOData

Parameters

  • command
    Command number. Specific values assigned by the Service Object.
  • data
  • obj

Remarks

Using the DirectIO method allows a Service Object to provide functionality to the application that is not otherwise supported by the standard Service Object for its device class. Depending on the Service Object’s definition of the command, the DirectIO method may be asynchronous or synchronous.

DirectIO returns an instance of the DirectIOData class.

Note

Use of DirectIO will make an application non-portable. However, the application may maintain portability by performing DirectIO calls within conditional code. This code can be based on the value of the ServiceObjectDescription, ServiceObjectVersion, DeviceDescription, or DeviceName properties.

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
DirectIOData Structure