IrDAHints Enumeration

Describes an enumeration of possible device types, such as Fax.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.Net.Sockets
Assembly: System.Net.IrDA (in

public enum IrDAHints
/** @attribute FlagsAttribute() */ 
public enum IrDAHints
public enum IrDAHints

 Member nameDescription
Supported by the .NET Compact FrameworkComputerA personal computer  
Supported by the .NET Compact FrameworkFaxA fax  
Supported by the .NET Compact FrameworkFileServerA personal computer file server  
Supported by the .NET Compact FrameworkLanAccessA local area network access  
Supported by the .NET Compact FrameworkModemA modem  
Supported by the .NET Compact FrameworkNoneA name indicating no device  
Supported by the .NET Compact FrameworkPdaAndPalmtopA Pocket PC  
Supported by the .NET Compact FrameworkPnPA Plug and Play interface  
Supported by the .NET Compact FrameworkPrinterA printer  
Supported by the .NET Compact FrameworkTelephonyA telephonic device  

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!");

// Enumerate the IrDADeviceInfo
// array and list device information
// for each device in the list box.
string device;
int ID;
foreach(IrDADeviceInfo irDevice in irDevices)
    ID = BitConverter.ToInt32(irDevice.DeviceID, 0);
    device = ID.ToString() + " " + irDevice.DeviceName + " "
        +  irDevice.CharacterSet + " " + irDevice.Hints;

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