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

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

TcpClient.SendTimeout プロパティ

送信操作正常に完了するのを TcpClient が待機する時間取得または設定します

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

Dim instance As TcpClient
Dim value As Integer

value = instance.SendTimeout

instance.SendTimeout = value
public int SendTimeout { get;
 set; }
public:
property int SendTimeout {
    int get ();
    void set (int value);
}
/** @property */
public int get_SendTimeout ()

/** @property */
public void set_SendTimeout (int
 value)
public function get SendTimeout
 () : int

public function set SendTimeout
 (value : int)

プロパティ
ミリ秒単位送信タイムアウト値。既定値は 0 です。

解説解説
使用例使用例

SendTimeout 値を設定および取得するコード例次に示します

' Sets the send time out using the SendTimeout public property.
tcpClient.SendTimeout = 5000

' Gets the send time out using the SendTimeout public property.
If tcpClient.SendTimeout = 5000 Then
   Console.WriteLine(("The send time out limit was successfully
 set " + tcpClient.SendTimeout.ToString()))
End If
// sets the send time out using the SendTimeout public property.
tcpClient.SendTimeout = 5;

// gets the send time out using the SendTimeout public property.
if (tcpClient.SendTimeout == 5)
    Console.WriteLine ("The send time out limit was successfully set
 " + tcpClient.SendTimeout.ToString ());

// sets the send time out using the SendTimeout public property.
tcpClient->SendTimeout = 5;

// gets the send time out using the SendTimeout public property.
if ( tcpClient->SendTimeout == 5 )
      Console::WriteLine( "The send time out limit was successfully set
 {0}", tcpClient->SendTimeout );


// sets the send time out using the SendTimeout public property.
tcpClient.set_SendTimeout(5);

// gets the send time out using the SendTimeout public property.
if (tcpClient.get_SendTimeout() == 5) {
    Console.WriteLine("The send time out limit was successfully set
 "
        + ((Int32)tcpClient.get_SendTimeout()).ToString());
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TcpClient クラス
TcpClient メンバ
System.Net.Sockets 名前空間
Write
TcpClient.ReceiveTimeout プロパティ


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS