TcpConnectionInformation.LocalEndPoint プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TcpConnectionInformation.LocalEndPoint プロパティの意味・解説 

TcpConnectionInformation.LocalEndPoint プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

伝送制御プロトコル (TCP) 接続ローカル エンドポイント取得します

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

Public MustOverride ReadOnly
 Property LocalEndPoint As IPEndPoint
Dim instance As TcpConnectionInformation
Dim value As IPEndPoint

value = instance.LocalEndPoint
public abstract IPEndPoint LocalEndPoint { get;
 }
public:
virtual property IPEndPoint^ LocalEndPoint {
    IPEndPoint^ get () abstract;
}
/** @property */
public abstract IPEndPoint get_LocalEndPoint ()
public abstract function get
 LocalEndPoint () : IPEndPoint

プロパティ
ローカル コンピュータIP アドレスポート格納している IPEndPoint インスタンス

使用例使用例

アクティブTCP 接続エンドポイント情報表示するコード例次に示します

Public Shared Sub GetTcpConnections()
 
    Dim properties As IPGlobalProperties =
 IPGlobalProperties.GetIPGlobalProperties()
    Dim connections As TcpConnectionInformation()
 = properties.GetActiveTcpConnections()
    
    Dim t As TcpConnectionInformation
    For Each t In  connections
        Console.Write("Local endpoint: {0} ", t.LocalEndPoint.Address)
        Console.Write("Remote endpoint: {0} ", t.RemoteEndPoint.Address)
        Console.WriteLine("{0}", t.State)
    Next t

End Sub 'GetTcpConnections

public static void GetTcpConnections()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    TcpConnectionInformation[] connections = properties.GetActiveTcpConnections();
    
    foreach (TcpConnectionInformation t in
 connections)
    {
        Console.Write("Local endpoint: {0} ",t.LocalEndPoint.Address);
        Console.Write("Remote endpoint: {0} ",t.RemoteEndPoint.Address);
        Console.WriteLine("{0}",t.State);
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TcpConnectionInformation クラス
TcpConnectionInformation メンバ
System.Net.NetworkInformation 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からTcpConnectionInformation.LocalEndPoint プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からTcpConnectionInformation.LocalEndPoint プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からTcpConnectionInformation.LocalEndPoint プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

TcpConnectionInformation.LocalEndPoint プロパティのお隣キーワード
検索ランキング

   

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



TcpConnectionInformation.LocalEndPoint プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS