ProcessHost.SetApplicationPreloadState(String, String, Boolean) Method

Definition

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

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

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

Parameters

context
String

The application context.

appId
String

The unique ID of the application.

enabled
Boolean

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

Implements

Exceptions

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

-or-

appId is null or empty.

-or-

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

Remarks

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.

Notes

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

Applies to

Produit Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1