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

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

ServicePointManager.MaxServicePointIdleTime プロパティ

ServicePoint オブジェクト最大アイドル時間取得または設定します

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

Public Shared Property MaxServicePointIdleTime
 As Integer
Dim value As Integer

value = ServicePointManager.MaxServicePointIdleTime

ServicePointManager.MaxServicePointIdleTime = value
public static int MaxServicePointIdleTime
 { get; set; }
public:
static property int MaxServicePointIdleTime
 {
    int get ();
    void set (int value);
}
/** @property */
public static int get_MaxServicePointIdleTime
 ()

/** @property */
public static void set_MaxServicePointIdleTime
 (int value)
public static function get
 MaxServicePointIdleTime () : int

public static function set
 MaxServicePointIdleTime (value : int)

プロパティ
ServicePoint オブジェクトミリ秒単位最大アイドル時間既定値100,000 ミリ秒 (100 秒) です。

例外例外
例外種類条件

ArgumentOutOfRangeException

MaxServicePointIdleTime が Timeout.Infinite より小さい値か、Int32.MaxValue より大きい値です。

解説解説
使用例使用例

このプロパティ設定するコード例次に示します

' Set the maximum number of ServicePoint instances to maintain.
' Note that, if a ServicePoint instance for that host already 
' exists when your application requests a connection to
' an Internet resource, the ServicePointManager object
' returns this existing ServicePoint. If none exists 
' for that host, it creates a new ServicePoint instance.
ServicePointManager.MaxServicePoints = 4

' Set the maximum idle time of a ServicePoint instance to 10 seconds.
' After the idle time expires, the ServicePoint object is eligible for
' garbage collection and cannot be used by the ServicePointManager.
ServicePointManager.MaxServicePointIdleTime = 10000

// Set the maximum number of ServicePoint instances to 
// maintain. If a ServicePoint instance for that host already 
// exists when your application requests a connection to
// an Internet resource, the ServicePointManager object
// returns this existing ServicePoint instance. If none exists 
// for that host, it creates a new ServicePoint instance.
ServicePointManager.MaxServicePoints = 4;

// Set the maximum idle time of a ServicePoint instance to 10 seconds.
// After the idle time expires, the ServicePoint object is eligible
 for
// garbage collection and cannot be used by the ServicePointManager
 object.
ServicePointManager.MaxServicePointIdleTime = 10000;

// Set the maximum number of ServicePoint instances to 
// maintain. If a ServicePoint instance for that host already 
// exists when your application requests a connection to
// an Internet resource, the ServicePointManager object
// returns this existing ServicePoint instance. If none exists 
// for that host, it creates a new ServicePoint instance.
ServicePointManager::MaxServicePoints = 4;

// Set the maximum idle time of a ServicePoint instance to 10 seconds.
// After the idle time expires, the ServicePoint object is eligible
 for
// garbage collection and cannot be used by the ServicePointManager.
ServicePointManager::MaxServicePointIdleTime = 10000;

// Set the maximum number of ServicePoint instances to 
// maintain. If a ServicePoint instance for that host already 
// exists when your application requests a connection to
// an Internet resource, the ServicePointManager object
// returns this existing ServicePoint instance. If none exists 
// for that host, it creates a new ServicePoint instance.
ServicePointManager.set_MaxServicePoints(4);

// Set the maximum idle time of a ServicePoint instance to 10 seconds.
// After the idle time expires, the ServicePoint object is eligible
 
// for garbage collection and cannot be used by the ServicePointManager
// object.
ServicePointManager.set_MaxServicePointIdleTime(10000);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServicePointManager クラス
ServicePointManager メンバ
System.Net 名前空間



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

辞書ショートカット

すべての辞書の索引

「ServicePointManager.MaxServicePointIdleTime プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS