Share via


DeviceInfo.IsDeviceInfoOf Method

Indicates whether a DeviceInfo instance applies to the specified service object.

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

Usage

'Usage
Dim serviceObject As PosCommon
Dim returnValue As Boolean
Dim deviceInfo1 As DeviceInfo
returnValue = deviceInfo1.IsDeviceInfoOf(serviceObject)

Syntax

'Declaration
Public Function IsDeviceInfoOf( _
    ByVal serviceObject As PosCommon _
) As Boolean
public bool IsDeviceInfoOf(
    PosCommon serviceObject
);
public: Boolean IsDeviceInfoOf(
    PosCommon^ serviceObject
);
public boolean IsDeviceInfoOf(
    PosCommon serviceObject
);
public function IsDeviceInfoOf(
     serviceObject : PosCommon
) : Boolean;

Parameters

  • serviceObject
    The service object to compare.

Return Value

Boolean.

Remarks

IsDeviceInfoOf compares the Type and HardwarePath properties of a DeviceInfo object and a service object.

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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

DeviceInfo Class
DeviceInfo Members
Microsoft.PointOfService Namespace