IrDADeviceInfo Class
.NET Framework 2.0
Provides information about remote devices connected by infrared communications.
Namespace: System.Net.Sockets
Assembly: System.Net.IrDA (in system.net.irda.dll)
System.Net.Sockets Namespace
Assembly: System.Net.IrDA (in system.net.irda.dll)
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!") Return 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 ListBox1.Items.Clear() For Each irDevice As IrDADeviceInfo In irDevices ID = BitConverter.ToInt32(irDevice.DeviceID, 0) device = ID.ToString() _ & " " & irDevice.DeviceName _ & " " & irDevice.CharacterSet _ & " " & irDevice.Hints ListBox1.Items.Add(device) Next irDevice
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
IrDADeviceInfo MembersSystem.Net.Sockets Namespace
Other Resources
How to: Make an Infrared File TransferCommunity Additions
ADD
Show: