IrDAHints Enumeration
.NET Framework 3.0
Describes an enumeration of possible device types, such as Fax.
Assembly: System.Net.IrDA (in system.net.irda.dll)
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.Net.SocketsAssembly: System.Net.IrDA (in system.net.irda.dll)
The following code example shows obtaining a hint about the device using the the Hints property. 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) { MessageBox.Show("No remote infrared devices found!"); return; } // Enumerate the IrDADeviceInfo // array and list device information // for each device in the list box. string device; int ID; listBox1.Items.Clear(); foreach(IrDADeviceInfo irDevice in irDevices) { ID = BitConverter.ToInt32(irDevice.DeviceID, 0); device = ID.ToString() + " " + irDevice.DeviceName + " " + irDevice.CharacterSet + " " + irDevice.Hints; listBox1.Items.Add(device); }
Community Additions
ADD
Show:
