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

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IPEndPoint.Serialize メソッドの意味・解説 

IPEndPoint.Serialize メソッド

SocketAddress インスタンスに対してエンドポイント情報シリアル化ます。

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

使用例使用例

Serialize メソッド使用してエンドポイント情報SocketAddressシリアル化する例を次に示します

' The serializeEndpoint method serializes the endpoint and returns the
 
' SocketAddress containing the serialized endpoint data.
Private Shared Function
 serializeEndpoint(ByVal endpoint As IPEndPoint)
 As SocketAddress

  ' Serialize IPEndPoint details to a SocketAddress instance.
  Dim socketAddress As SocketAddress = endpoint.Serialize()

  ' Display the serialized endpoint information.
  Console.WriteLine("Endpoint Serialize() : " + socketAddress.ToString())

  Console.WriteLine("Socket Family : " + socketAddress.Family.ToString())
  Console.WriteLine("Socket Size : " + socketAddress.ToString())

  Console.WriteLine("Press any key to continue.")
  Console.ReadLine()

  Return socketAddress
End Function 'serializeEndpoint

// The serializeEndpoint method serializes the endpoint and returns
 the 
// SocketAddress containing the serialized endpoint data.
private static SocketAddress serializeEndpoint(IPEndPoint
 endpoint)
{
 
  // Serialize IPEndPoint details to a SocketAddress instance.
  SocketAddress socketAddress = endpoint.Serialize();
  
  // Display the serialized endpoint information.
  Console.WriteLine("Endpoint.Serialize() : " + socketAddress.ToString());
 
  Console.WriteLine("Socket.Family : " + socketAddress.Family);
  Console.WriteLine("Socket.Size : " + socketAddress.Size);

  Console.WriteLine("Press any key to continue.");
  Console.ReadLine();

  return socketAddress;
}
// The serializeEndpoint function serializes the endpoint and returns
 the 
// SocketAddress containing the serialized endpoint data.
SocketAddress^ serializeEndpoint( IPEndPoint^ endpoint )
{
   // Serialize IPEndPoint details to a SocketAddress instance.
   SocketAddress^ socketAddress = endpoint->Serialize();

   // Display the serialized endpoint information.
   Console::WriteLine( "Endpoint.Serialize() : {0}", socketAddress );
   Console::WriteLine( "Socket->Family : {0}", socketAddress->Family
 );
   Console::WriteLine( "Socket->Size : {0}", socketAddress->Size
 );
   Console::WriteLine( "Press any key to continue." );
   Console::ReadLine();
   return socketAddress;
}
// The SerializeEndpoint method serializes the endpoint and returns
 the 
// SocketAddress containing the serialized endpoint data.
private static SocketAddress SerializeEndpoint(IPEndPoint
 endpoint)
{
    // Serialize IPEndPoint details to a SocketAddress instance.
    SocketAddress socketAddress = endpoint.Serialize();

    // Display the serialized endpoint information.
    Console.WriteLine(("Endpoint.Serialize() : " 
        + socketAddress.ToString()));
    Console.WriteLine(("Socket.Family : " + socketAddress.get_Family()));
    Console.WriteLine(("Socket.Size : " + socketAddress.get_Size()));
    Console.WriteLine("Press any key to continue.");
    Console.ReadLine();
    return socketAddress;
} //SerializeEndpoint
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS