Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IrDADeviceInfo Class

IrDADeviceInfo Class

Provides information about remote devices connected by infrared communications.

Namespace: System.Net.Sockets
Assembly: System.Net.IrDA (in system.net.irda.dll)

Public Class IrDADeviceInfo
Dim instance As IrDADeviceInfo

public class IrDADeviceInfo
public class IrDADeviceInfo
Not applicable.

The following code example shows creates a collection of devices. This code example is part of a larger example provided for the IrDAClient class.

' Create a collection of a maximum of three devices.
irDevices = irClient.DiscoverDevices(2)

' Show a message if no devices are found.
If irDevices.Length = 0 Then
    MsgBox("No remote infrared devices found!")
End If

' Enumerate the IrDADeviceInfo
' array and list device information
' for each device in the list box.
Dim device As String
Dim ID As Integer
For Each irDevice As IrDADeviceInfo In  irDevices
    ID = BitConverter.ToInt32(irDevice.DeviceID, 0)
    device = ID.ToString() _
        & " " & irDevice.DeviceName _
        & " " & irDevice.CharacterSet _
        & " " & irDevice.Hints
Next irDevice


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

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

© 2015 Microsoft