ServicePoint.ConnectionLeaseTimeout プロパティとは?

辞典・百科事典の検索サービス - Weblio辞書

初めての方へ

参加元一覧


用語解説|全文検索
Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ServicePoint.ConnectionLeaseTimeout プロパティの意味・解説 

.NET Framework クラス ライブラリ リファレンス

日本マイクロソフト株式会社日本マイクロソフト株式会社

ServicePoint.ConnectionLeaseTimeout プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

アクティブServicePoint 接続が閉じられるまでのミリ秒単位時間取得または設定します。

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

Public Property ConnectionLeaseTimeout As
 Integer
Dim instance As ServicePoint
Dim value As Integer

value = instance.ConnectionLeaseTimeout

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

/** @property */
public void set_ConnectionLeaseTimeout (int
 value)
public function get ConnectionLeaseTimeout
 () : int

public function set ConnectionLeaseTimeout
 (value : int)

プロパティ
アクティブServicePoint 接続が開いている時間ミリ秒単位指定する Int32既定値は -1 で、アクティブServicePoint 接続無制限に開いておくことができます要求の処理後に強制的ServicePoint 接続を閉じるには、このプロパティを 0 に設定します。

例外例外
解説解説

このプロパティ使用して、ServicePoint オブジェクトアクティブ接続無制限に開いたままにならないようにできます。このプロパティは、負荷分散を行う場合など、定期的に接続切断して再確立する必要がある場合用に用意されています。

既定では、要求KeepAlivetrue である場合、MaxIdleTime プロパティで、アクティブでない場合ServicePoint 接続を閉じるためのタイムアウト設定します。ServicePointアクティブ接続がある場合MaxIdleTime無効で、接続無制限開かれたままになります。

ConnectionLeaseTimeout プロパティが -1 以外の値に設定されている場合指定した時間経過すると、要求の処理後に、その要求KeepAlivefalse設定することによって、アクティブServicePoint 接続が閉じられます。

この値を設定すると、ServicePoint オブジェクト管理しているすべての接続影響します。

使用例使用

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照





ServicePoint.ConnectionLeaseTimeout プロパティのページへのリンク
ServicePoint.ConnectionLeaseTimeout プロパティのお隣キーワード
モバイル
モバイル版のWeblioは、下記のURLからアクセスしてください。
http://m.weblio.jp/
_ _   


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

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

©2012 Weblio RSS