HttpContext.ApplicationInstance Eigenschaft

Definition

Ruft das HttpApplication-Objekt für die aktuelle HTTP-Anforderung ab oder legt dieses fest.

public:
 property System::Web::HttpApplication ^ ApplicationInstance { System::Web::HttpApplication ^ get(); void set(System::Web::HttpApplication ^ value); };
public System.Web.HttpApplication ApplicationInstance { get; set; }
member this.ApplicationInstance : System.Web.HttpApplication with get, set
Public Property ApplicationInstance As HttpApplication

Eigenschaftswert

HttpApplication

Das HttpApplication-Objekt für die aktuelle HTTP-Anforderung.

In ASP.NET wird als Eigenschaftenname ApplicationInstance anstelle von Application verwendet, um auf die aktuelle HttpApplication-Instanz zu verweisen, um Verwechslungen zwischen ASP.NET und klassischem ASP zu verhindern. Im klassischem ASP verweist Application auf das globale Anwendungszustands-Wörterbuch.

Ausnahmen

Die Webanwendung wird unter IIS 7.0 im integrierten Modus ausgeführt, und es wurde versucht, den Eigenschaftswert von einem Wert ungleich NULL in null zu ändern.

Gilt für

Siehe auch