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

IrDAEndPoint クラス

赤外線通信のエンドポイントを表します。

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

Public Class IrDAEndPoint
    Inherits EndPoint
public class IrDAEndPoint : EndPoint
public class IrDAEndPoint extends EndPoint
public class IrDAEndPoint extends
 EndPoint
解説解説
使用例使用例

次のコード例は、IrDAEndPoint クラスを使用してデバイスへの接続を作成し、IrDAListener クラスを使用してそのデバイスからの赤外線通信の待機を開始しています。このコード例は、IrDAClient クラスのトピックで取り上げているコード例の一部分です。

' Create a connection, with the IrDAEndPoint class,
' for the selected device in the list box.
' Start listening for incoming requests from
' that device with an IrDAListener object.
Try
    Dim i As Integer = ListBox1.SelectedIndex
    irEndP = New IrDAEndPoint(irDevices(i).DeviceID, irServiceName)
    irListen = New IrDAListener(irEndP)
    irListen.Start()
Catch exSoc As SocketException
    MsgBox("Couldn't listen on service " & irServiceName
 & ": " _
        & exSoc.ErrorCode)
End Try
// Create a connection, with the IrDAEndPoint class,
// for the selected device in the list box.
// Start listening for incoming requests from
// that device with an IrDAListener object.
try
{
    int i = listBox1.SelectedIndex;
    irEndP = new IrDAEndPoint(irDevices[i].DeviceID,
        irServiceName);
    irListen = new IrDAListener(irEndP);
    irListen.Start();
}
catch(SocketException exSoc)
{
    MessageBox.Show("Couldn't listen on service "
        + irServiceName + ": "
        + exSoc.ErrorCode);
}
継承階層継承階層
System.Object
   System.Net.EndPoint
    System.Net.IrDAEndPoint
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

IrDAEndPoint コンストラクタ

IrDAEndPoint クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    irdaDeviceID As Byte(), _
    serviceName As String _
)
Dim irdaDeviceID As Byte()
Dim serviceName As String

Dim instance As New IrDAEndPoint(irdaDeviceID,
 serviceName)
public IrDAEndPoint (
    byte[] irdaDeviceID,
    string serviceName
)
public:
IrDAEndPoint (
    array<unsigned char>^ irdaDeviceID, 
    String^ serviceName
)
public IrDAEndPoint (
    byte[] irdaDeviceID, 
    String serviceName
)
public function IrDAEndPoint (
    irdaDeviceID : byte[], 
    serviceName : String
)

パラメータ

irdaDeviceID

デバイス識別子。

serviceName

接続先のサービスの名前。

例外例外
例外の種類条件

ArgumentException

デバイス識別子またはサービス名が無効です。

解説解説

IrDAEndPoint を使用してデバイスへの接続を作成すると、IrDAListener を使用して、そのデバイスからの赤外線通信を監視できます。

使用例使用例

次のコード例は、IrDAEndPoint を使用して、リスト ボックスから選択されたリモートの参加デバイスへの接続を作成し、IrDAListener を使用して、そのリモート デバイスからの赤外線通信を待機しています。このコード例は、IrDAClient クラスのトピックで取り上げているコード例の一部分です。

' Create a connection, with the IrDAEndPoint class,
' for the selected device in the list box.
' Start listening for incoming requests from
' that device with an IrDAListener object.
Try
    Dim i As Integer = ListBox1.SelectedIndex
    irEndP = New IrDAEndPoint(irDevices(i).DeviceID, irServiceName)
    irListen = New IrDAListener(irEndP)
    irListen.Start()
Catch exSoc As SocketException
    MsgBox("Couldn't listen on service " & irServiceName
 & ": " _
        & exSoc.ErrorCode)
End Try
// Create a connection, with the IrDAEndPoint class,
// for the selected device in the list box.
// Start listening for incoming requests from
// that device with an IrDAListener object.
try
{
    int i = listBox1.SelectedIndex;
    irEndP = new IrDAEndPoint(irDevices[i].DeviceID,
        irServiceName);
    irListen = new IrDAListener(irEndP);
    irListen.Start();
}
catch(SocketException exSoc)
{
    MessageBox.Show("Couldn't listen on service "
        + irServiceName + ": "
        + exSoc.ErrorCode);
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

IrDAEndPoint プロパティ


IrDAEndPoint メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

IrDAEndPoint クラス
System.Net 名前空間

その他の技術情報

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

IrDAEndPoint メンバ

赤外線通信のエンドポイントを表します。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド IrDAEndPoint IrDAEndPoint クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

IrDAEndPoint クラス
System.Net 名前空間

その他の技術情報

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



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「IrDAEndPoint」の関連用語

IrDAEndPointのお隣キーワード

   

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



IrDAEndPointのページの著作権

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

©2026 GRAS Group, Inc.RSS