Export (0) Print
Expand All

ProcessHost.SetApplicationPreloadState Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Notifies ASP.NET that a particular application that is running on IIS 7.0 is configured to be preloaded.

Namespace:  System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

public void SetApplicationPreloadState(
	string context,
	string appId,
	bool enabled


Type: System.String

The application context.

Type: System.String

The unique ID of the application.

Type: System.Boolean

true to indicate the application should be preloaded; otherwise, false.


IApplicationPreloadManager.SetApplicationPreloadState(String, String, Boolean)


The IApplicationPreloadUtil instance that contains information for preloading the application is null or empty.


appId is null or empty.


enabled is set to true and the process host was not previously passed an IApplicationPreloadUtil interface to its SetApplicationPreloadUtil method

This method implements the SetApplicationPreloadState method of the IApplicationPreloadManager interface. IIS 7.0 calls the SetApplicationPreloadState method to notify ASP.NET whether the application that is being loaded supports preloading.


This method applies only to applications that run on IIS 7.0.

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft