This topic has not yet been rated - Rate this topic

IrDAHints Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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 System.Net.IrDA.dll)
[FlagsAttribute]
public enum IrDAHints
Member name Description
Supported by the .NET Compact Framework None A name indicating no device
Supported by the .NET Compact Framework PnP A Plug and Play interface
Supported by the .NET Compact Framework PdaAndPalmtop A Pocket PC
Supported by the .NET Compact Framework Computer A personal computer
Supported by the .NET Compact Framework Printer A printer
Supported by the .NET Compact Framework Modem A modem
Supported by the .NET Compact Framework Fax A fax
Supported by the .NET Compact Framework LanAccess A local area network access
Supported by the .NET Compact Framework Telephony A telephonic device
Supported by the .NET Compact Framework FileServer A personal computer file server

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);
}


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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0
Did you find this helpful?
(1500 characters remaining)