ProcessHost.SetApplicationPreloadState(String, String, Boolean) Methode

Definition

Benachrichtigt ASP.NET, dass eine bestimmte Anwendung, die unter IIS 7.0 ausgeführt wird, für das Vorabladen konfiguriert ist.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

public:
 virtual void SetApplicationPreloadState(System::String ^ context, System::String ^ appId, bool enabled);
public void SetApplicationPreloadState (string context, string appId, bool enabled);
abstract member SetApplicationPreloadState : string * string * bool -> unit
override this.SetApplicationPreloadState : string * string * bool -> unit
Public Sub SetApplicationPreloadState (context As String, appId As String, enabled As Boolean)

Parameter

context
String

Der Anwendungskontext.

appId
String

Die eindeutige ID der Anwendung.

enabled
Boolean

true, um anzugeben, dass die Anwendung vorab geladen werden muss, andernfalls false.

Implementiert

Ausnahmen

Die IApplicationPreloadUtil-Instanz mit den zum Vorabladen der Anwendung erforderlichen Informationen ist null oder leer.

- oder -

appId hat den Wert null oder ist leer.

- oder -

enabled ist auf true festgelegt, und an die IApplicationPreloadUtil-Methode des Prozesshosts wurde zuvor keine SetApplicationPreloadUtil(IApplicationPreloadUtil)-Schnittstelle übergeben.

Hinweise

Diese Methode implementiert die SetApplicationPreloadState -Methode der IApplicationPreloadManager -Schnittstelle. IIS 7.0 ruft die SetApplicationPreloadState -Methode auf, um ASP.NET zu benachrichtigen, ob die geladene Anwendung das Vorabladen unterstützt.

Hinweis

Diese Methode gilt nur für Anwendungen, die unter IIS 7.0 ausgeführt werden.

Gilt für