ServicePointManager.MaxServicePointIdleTime プロパティ
アセンブリ: System (system.dll 内)

Dim value As Integer value = ServicePointManager.MaxServicePointIdleTime ServicePointManager.MaxServicePointIdleTime = 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 秒) です。


MaxServicePointIdleTime プロパティは、ServicePoint オブジェクトの作成時に ServicePointManager オブジェクトが MaxIdleTime プロパティに割り当てる最大アイドル時間を設定します。この値への変更は、値が変更された後に初期化される ServicePoint オブジェクトにだけ影響します。
ServicePoint オブジェクトのアイドル時間が MaxIdleTime で指定した時間を超えた場合は、ガベージ コレクションの対象となります。ServicePoint オブジェクトに関連付けられている接続の一覧が空の場合、ServicePoint オブジェクトはアイドル状態です。

' 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);


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ServicePointManager.MaxServicePointIdleTime プロパティのページへのリンク