WindowsAuthenticationElement.DefaultCredentialsHandleCacheSize プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Windows資格情報ハンドル キャッシュの既定のサイズを定義します。
public:
property int DefaultCredentialsHandleCacheSize { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("defaultCredentialsHandleCacheSize", DefaultValue=0)]
public int DefaultCredentialsHandleCacheSize { get; set; }
[<System.Configuration.ConfigurationProperty("defaultCredentialsHandleCacheSize", DefaultValue=0)>]
member this.DefaultCredentialsHandleCacheSize : int with get, set
Public Property DefaultCredentialsHandleCacheSize As Integer
プロパティ値
Windows資格情報ハンドル キャッシュの既定のサイズ。
- 属性
注釈
既定では、 defaultCredentialsHandleCacheSize の値は 0 です。 これにより、Windowsは HttpWebRequest ごとに個別の SSPI ハンドルを割り当てます。
<system.net>
<settings>
<windowsAuthentication defaultCredentialsHandleCacheSize="0" />
</settings>
</system.net>
この動作がパフォーマンスに影響する場合は、 DefaultCredentialsHandleCacheSize を 0 より大きい値に設定して、既定のネットワーク資格情報に 1 つのキャッシュされた SSPI 資格情報ハンドルを使用します。 正確な値は、アプリケーションの要件によって異なります。 一般に、50 ~ 100 の値は、最もパフォーマンスの高いアプリケーションで機能します。