IPEndPoint.Create メソッドとは? わかりやすく解説

IPEndPoint.Create メソッド

ソケット アドレスからエンドポイント作成します

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

Public Overrides Function
 Create ( _
    socketAddress As SocketAddress _
) As EndPoint
Dim instance As IPEndPoint
Dim socketAddress As SocketAddress
Dim returnValue As EndPoint

returnValue = instance.Create(socketAddress)
public override EndPoint Create (
    SocketAddress socketAddress
)
public:
virtual EndPoint^ Create (
    SocketAddress^ socketAddress
) override
public EndPoint Create (
    SocketAddress socketAddress
)
public override function Create (
    socketAddress : SocketAddress
) : EndPoint

パラメータ

socketAddress

エンドポイント使用する SocketAddress。

戻り値
指定したソケット アドレス使用する EndPoint インスタンス

例外例外
例外種類条件

ArgumentException

socketAddress の AddressFamily は、現在のインスタンスの AddressFamily と同じではありません。

または

socketAddress .Size < 8。

使用例使用例

指定した SocketAddress使用して、IPEndPoint を作成する例を次に示します

' Recreate the connection endpoint from the serialized information.
Dim endpoint As New IPEndPoint(0,
 0)
Dim clonedIPEndPoint As IPEndPoint = CType(endpoint.Create(socketAddress),
 IPEndPoint)
Console.WriteLine(("clonedIPEndPoint: " + clonedIPEndPoint.ToString()))
// Recreate the connection endpoint from the serialized information.
IPEndPoint endpoint = new IPEndPoint(0,0);
IPEndPoint clonedIPEndPoint = (IPEndPoint) endpoint.Create(socketAddress);
Console.WriteLine("clonedIPEndPoint: " + clonedIPEndPoint.ToString());
// Recreate the connection endpoint from the serialized information.
IPEndPoint^ endpoint = gcnew IPEndPoint( (__int64)0,0 );
IPEndPoint^ clonedIPEndPoint = dynamic_cast<IPEndPoint^>(endpoint->Create(
 socketAddress ));
Console::WriteLine( "clonedIPEndPoint: {0}", clonedIPEndPoint );
// Recreate the connection endpoint from the serialized information.
IPEndPoint endpoint = new IPEndPoint(0, 0);
IPEndPoint clonedIPEndPoint = 
        ((IPEndPoint)(endpoint.Create(socketAddress)));
Console.WriteLine(("clonedIPEndPoint: " 
    + clonedIPEndPoint.ToString()));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

IPEndPoint.Create メソッドのお隣キーワード
検索ランキング

   

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



IPEndPoint.Create メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS