ProcessModelSection クラス
アセンブリ: System.Web (system.web.dll 内)


ProcessModelSection クラスを使用すると、構成ファイルの processModel セクションにプログラムからアクセスして変更できます。
ProcessModelSection クラスは、有効期間、一度に作成できるインスタンスの数、実行環境のセキュリティ ID、要求を処理する CLR スレッド プールのサイズなど、ASP.NET ワーカー プロセスのさまざまな側面を制御します。
IIS 6 ネイティブ モードで実行されている ASP.NET は、IIS 6 プロセス モデルを使用し、このセクションで説明する設定のほとんどを無視します。これらのプロパティを構成するには、IIS 管理ユーザー インターフェイス (UI) を使用します。ASP.NET では、RequestQueueLimit、ResponseDeadlockInterval、MaxWorkerThreads、MaxIOThreads、MinWorkerThreads、および MinWorkerThreads の各プロパティも使用します。これらは構成ファイルを使用して構成できます。
processModel セクションは、ASP.NET ISAPI 拡張機能が使用するので、保護構成機能またはツールを使用して暗号化することはできません。詳細については、「方法 : ASP.NET アプリケーションを特定の ASP.NET バージョン用に構成する」を参照してください。

この例では、processModel セクションの複数の属性に対して、宣言によって値を指定する方法を示しています。これらの属性には、ProcessModelSection クラスのメンバとしてもアクセスできます。
次の構成ファイルの例では、processModel セクションに対して、宣言によって値を指定する方法を示しています。
<processModel enable="True" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="00:00:05" requestLimit="Infinite" requestQueueLimit="5000" restartQueueLimit="10" memoryLimit="60" webGarden="False" cpuMask="0xffffffff" userName="machine" password="AutoGenerate" logLevel="Errors" clientConnectedCheck="00:00:05" comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate" responseDeadlockInterval="00:03:00" responseRestartDeadlockInterval="00:03:00" autoConfig="True" maxWorkerThreads="20" maxIoThreads="20" minWorkerThreads="1" minIoThreads="1" serverErrorMessageFile="" pingFrequency="Infinite" pingTimeout="Infinite" asyncOption="20" maxAppDomains="2000" />
ProcessModelSection クラスを使用する方法を次のコード例に示します。
' Get the Web application configuration Dim configuration _ As System.Configuration.Configuration = _ WebConfigurationManager.OpenWebConfiguration("/aspnetTest") ' Get the section. Dim processModelSection _ As System.Web.Configuration.ProcessModelSection = _ CType(configuration.GetSection( _ "system.web/processmodel"), ProcessModelSection)
// Get the Web application configuration System.Configuration.Configuration configuration = WebConfigurationManager.OpenWebConfiguration("/aspnetTest"); // Get the section. System.Web.Configuration.ProcessModelSection processModelSection = (ProcessModelSection)configuration.GetSection( "system.web/processmodel");

System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.ProcessModelSection


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


ProcessModelSection メンバ
System.Web.Configuration 名前空間
ProcessModelSection クラス
ProcessModelLogLevel 列挙体
ProcessModelComAuthenticationLevel 列挙体
ProcessModelComImpersonationLevel 列挙体
その他の技術情報
processModel 要素 (ASP.NET 設定スキーマ)
ASP.NET プロセス モデルの設定と IIS 6.0 アプリケーション プールの設定の対応
方法 : ASP.NET アプリケーションを特定の ASP.NET バージョン用に構成する
- ProcessModelSection クラスのページへのリンク