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

trueum anzugeben, dass die Anwendung vorab geladen werden sollte; andernfalls . false

Implementiert

Ausnahmen

Die IApplicationPreloadUtil Instanz, die Informationen zum Vorabladen der Anwendung enthält, ist null oder leer.

-oder-

appId ist null oder leer.

-oder-

enabledist auf den true Prozesshost festgelegt, und der Prozesshost wurde zuvor keine Schnittstelle an seine SetApplicationPreloadUtil(IApplicationPreloadUtil) Methode übergebenIApplicationPreloadUtil.

Hinweise

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

Note

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

Gilt für: