IrDAEndPoint クラス
アセンブリ: System.Net.IrDA (system.net.irda.dll 内)



次のコード例は、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.Net.EndPoint
System.Net.IrDAEndPoint


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


IrDAEndPoint コンストラクタ
アセンブリ: System.Net.IrDA (system.net.irda.dll 内)

Dim irdaDeviceID As Byte() Dim serviceName As String Dim instance As New IrDAEndPoint(irdaDeviceID, serviceName)



次のコード例は、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); }


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


IrDAEndPoint プロパティ
IrDAEndPoint メソッド

名前 | 説明 | |
---|---|---|
![]() | Create | オーバーライドされます。 ソケット アドレスから IrDAEndPoint を作成します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | Serialize | オーバーライドされます。 エンドポイント情報を SocketAddress にシリアル化します。 |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

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



名前 | 説明 | |
---|---|---|
![]() | Create | オーバーライドされます。 ソケット アドレスから IrDAEndPoint を作成します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | Serialize | オーバーライドされます。 エンドポイント情報を SocketAddress にシリアル化します。 |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

- IrDAEndPointのページへのリンク