TechNet
Export (0) Print
Expand All

ProcessHost.SetApplicationPreloadState Method (String, String, Boolean)

.NET Framework (current version)
 

This API supports the product 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
)

Parameters

context
Type: System.String

The application context.

appId
Type: System.String

The unique ID of the application.

enabled
Type: System.Boolean

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

Exception Condition
ArgumentException

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

ArgumentException

appId is null or empty.

ArgumentException

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.

System_CAPS_noteNote

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

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft