Share via


PosExplorer.GetDevice Method (String, String)

2/27/2008

Retrieves a device of the specified type and logical name (or alias).

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

Syntax

'Declaration
Public Function GetDevice ( _
    type As String, _
    logicalName As String _
) As DeviceInfo
public DeviceInfo GetDevice (
    string type,
    string logicalName
)
public:
DeviceInfo^ GetDevice (
    String^ type, 
    String^ logicalName
)
public DeviceInfo GetDevice (
    String type, 
    String logicalName
)
public function GetDevice (
    type : String, 
    logicalName : String
) : DeviceInfo

Parameters

  • type
    A string that contains one of the 36 POS device types, as defined by the DeviceType helper class.
  • logicalName
    The logical name or alias of the device.

Remarks

Before you use GetDevice, logical names must be configured for the device by using either PosDm.exe or WMI. You cannot pass the service object name for logicalName.

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

PosExplorer Class
PosExplorer Members
Microsoft.PointOfService Namespace