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

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

ServicePoint.MaxIdleTime プロパティ

ServicePoint オブジェクト関連付けられた接続閉じられるまでにアイドル状態持続できる合計時間取得または設定します

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

Dim instance As ServicePoint
Dim value As Integer

value = instance.MaxIdleTime

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

/** @property */
public void set_MaxIdleTime (int
 value)
public function get MaxIdleTime
 () : int

public function set MaxIdleTime
 (value : int)

プロパティ
ServicePoint オブジェクト関連付けられた接続閉じられ別の接続再利用されるまでにアイドル状態持続できる時間 (ミリ秒単位)。

例外例外
例外種類条件

ArgumentOutOfRangeException

MaxIdleTime が Timeout.Infinite より小さい値か、Int32.MaxValue より大きい値に設定されています。

解説解説

MaxIdleTimeTimeout.Infinite設定してServicePoint オブジェクト関連付けられた接続タイムアウトないよう指定できます

MaxIdleTime プロパティ既定値は、ServicePoint オブジェクトの作成時の ServicePointManager.MaxServicePointIdleTime プロパティの値です。後で MaxServicePointIdleTime プロパティ変更しても、既存ServicePoint オブジェクトには影響与えません。

ServicePoint関連付けられた接続の上限である MaxIdleTime超えた場合、その接続開いたままになります。この状態は、アプリケーション使用試みると終了します。このとき、接続.NET Framework によって閉じられリモート ホストへの新し接続作成されます。

使用例使用例

MaxIdleTime プロパティ使用してServicePointアイドル時間取得および設定するコード例次に示します

' Display the date and time that the ServicePoint was last 
' connected to a host.
Console.WriteLine(("IdleSince = " + sp.IdleSince.ToString()))


' Display the maximum length of time that the ServicePoint instance
 
' is allowed to maintain an idle connection to an Internet  
' resource before it is recycled for use in another connection.
Console.WriteLine(("MaxIdleTime = " + sp.MaxIdleTime.ToString()))

// Display the date and time that the ServicePoint was last 
// connected to a host.
Console.WriteLine ("IdleSince = " + sp.IdleSince.ToString ());

// Display the maximum length of time that the ServicePoint instance
  
// is allowed to maintain an idle connection to an Internet  
// resource before it is recycled for use in another connection.
Console.WriteLine ("MaxIdleTime = " + sp.MaxIdleTime);

// Display the date and time that the ServicePoint was last 
// connected to a host.
Console::WriteLine( "IdleSince = {0}", sp->IdleSince );

// Display the maximum length of time that the ServicePoint instance
  
// is allowed to maintain an idle connection to an Internet  
// resource before it is recycled for use in another connection.
Console::WriteLine( "MaxIdleTime = {0}", sp->MaxIdleTime );

// Display the date and time that the ServicePoint was last 
// connected to a host.
Console.WriteLine(("IdleSince = " + sp.get_IdleSince().ToString()));

// Display the maximum length of time that the ServicePoint instance
  
// is allowed to maintain an idle connection to an Internet  
// resource before it is recycled for use in another connection.
Console.WriteLine(("MaxIdleTime = " + sp.get_MaxIdleTime()));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS