IrDAHints 列挙体
この列挙体には、メンバ値のビットごとの組み合わせを可能にする FlagsAttribute 属性が含まれています。
名前空間: System.Net.Socketsアセンブリ: System.Net.IrDA (system.net.irda.dll 内)

<FlagsAttribute> _ Public Enumeration IrDAHints

メンバ名 | 説明 | |
---|---|---|
![]() | Computer | パーソナル コンピュータ |
![]() | Fax | ファックス |
![]() | FileServer | パーソナル コンピュータのファイル サーバー |
![]() | LanAccess | ローカル エリア ネットワーク アクセス |
![]() | Modem | モデム |
![]() | None | デバイスを示す名前がありません。 |
![]() | PdaAndPalmtop | Pocket PC |
![]() | PnP | プラグ アンド プレイ インターフェイス |
![]() | Printer | プリンタ |
![]() | Telephony | 電話機 |

次のコード例は、Hints プロパティを使用して、デバイスに関するヒントを取得する方法を示しています。このコード例は、IrDAClient クラスのトピックで取り上げているコード例の一部分です。
' 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
// 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 Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- IrDAHints 列挙体のページへのリンク