IrDAEndPoint コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IrDAEndPoint コンストラクタの意味・解説 

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セキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「IrDAEndPoint コンストラクタ」の関連用語

IrDAEndPoint コンストラクタのお隣キーワード
検索ランキング

   

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



IrDAEndPoint コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS