IrDADeviceInfoとは? わかりやすく解説

IrDADeviceInfo クラス

赤外線通信接続されるリモート デバイスに関する情報提供します

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

Public Class IrDADeviceInfo
Dim instance As IrDADeviceInfo
public class IrDADeviceInfo
public ref class IrDADeviceInfo
public class IrDADeviceInfo
public class IrDADeviceInfo
使用例使用例

次のコード例は、デバイスコレクション作成する方法示してます。このコード例は、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);
}
継承階層継承階層
System.Object
   System.Net.EndPoint
    System.Net.Sockets.IrDADeviceInfo
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

IrDADeviceInfo プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Hints デバイス種類 (コンピュータなど) を取得します
参照参照

関連項目

IrDADeviceInfo クラス
System.Net.Sockets 名前空間

その他の技術情報

方法 : 赤外線ファイル転送を行う

IrDADeviceInfo メソッド


IrDADeviceInfo メンバ

赤外線通信接続されるリモート デバイスに関する情報提供します

IrDADeviceInfo データ型公開されるメンバを以下の表に示します


パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Hints デバイス種類 (コンピュータなど) を取得します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

IrDADeviceInfo クラス
System.Net.Sockets 名前空間

その他の技術情報

方法 : 赤外線ファイル転送を行う



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

辞書ショートカット

すべての辞書の索引

「IrDADeviceInfo」の関連用語

IrDADeviceInfoのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS