IrDAHints 列挙体とは? わかりやすく解説

IrDAHints 列挙体

デバイス種類 (Fax など) の列挙体を記述します

この列挙体には、メンバ値のビットごとの組み合わせ可能にする FlagsAttribute 属性含まれています。

名前空間: System.Net.Sockets
アセンブリ: System.Net.IrDA (system.net.irda.dll 内)
構文構文

<FlagsAttribute> _
Public Enumeration IrDAHints
[FlagsAttribute] 
public enum IrDAHints
[FlagsAttribute] 
public enum class IrDAHints
/** @attribute FlagsAttribute() */ 
public enum IrDAHints
FlagsAttribute 
public enum IrDAHints
メンバメンバ
使用例使用例

次のコード例は、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);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「IrDAHints 列挙体」の関連用語

IrDAHints 列挙体のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



IrDAHints 列挙体のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS