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

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

Socket.SocketType プロパティ

Socket の型を取得します

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

Public ReadOnly Property
 SocketType As SocketType
Dim instance As Socket
Dim value As SocketType

value = instance.SocketType
public SocketType SocketType { get; }
public:
property SocketType SocketType {
    SocketType get ();
}
/** @property */
public SocketType get_SocketType ()
public function get SocketType
 () : SocketType

プロパティ
SocketType 値の 1 つ

解説解説
使用例使用例

AddressFamily、SocketType、および ProtocolType をコンソール表示するコード例次に示します

Dim s As New Socket(lep.Address.AddressFamily,
 SocketType.Stream, ProtocolType.Tcp)

'Using the AddressFamily, SocketType, and ProtocolType properties.
Console.WriteLine(("I just set the following properties of socket:
 " + "Address Family = " + s.AddressFamily.ToString()
 + ControlChars.Cr + "SocketType = " + s.SocketType.ToString() + ControlChars.Cr + "ProtocolType = " +
 s.ProtocolType.ToString()))

Socket s = new Socket (lep.Address.AddressFamily, SocketType.Stream,
 ProtocolType.Tcp);

//Using the AddressFamily, SocketType, and ProtocolType properties.
Console.WriteLine ("I just set the following properties of
 socket: " + "Address Family = " + s.AddressFamily.ToString () +
 "\nSocketType = " + s.SocketType.ToString () + "\nProtocolType = " + s.ProtocolType.ToString ());

Socket^ s = gcnew Socket( lep->Address->AddressFamily,SocketType::Stream,ProtocolType::Tcp
 );

//Uses the AddressFamily, SocketType, and ProtocolType properties.
Console::Write(  "I just set the following properties of
 socket: \n" );
Console::Write(  "Address Family = {0}", s->AddressFamily.ToString()
 );
Console::Write(  "\nSocketType = {0}", s->SocketType.ToString() );
Console::WriteLine(  "\nProtocolType = {0}", s->ProtocolType.ToString()
 );
Socket s = new Socket(lep.get_Address().get_AddressFamily(), 
    SocketType.Stream, ProtocolType.Tcp);
//Using the AddressFamily, SocketType, and ProtocolType properties.
Console.WriteLine("I just set the following properties of
 socket: " 
    + "Address Family = " + s.get_AddressFamily().ToString() 
    + "\nSocketType = " + s.get_SocketType().ToString() 
    + "\nProtocolType = " + s.get_ProtocolType().ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS