Compartir a través de


ApplicationHost.SetApplicationEventHandlers Method

Definition

Sets the event handlers for the application.

protected:
 virtual void SetApplicationEventHandlers(Microsoft::Uii::Csr::IHostedApplication ^ app, bool enable);
protected virtual void SetApplicationEventHandlers (Microsoft.Uii.Csr.IHostedApplication app, bool enable);
abstract member SetApplicationEventHandlers : Microsoft.Uii.Csr.IHostedApplication * bool -> unit
override this.SetApplicationEventHandlers : Microsoft.Uii.Csr.IHostedApplication * bool -> unit
Protected Overridable Sub SetApplicationEventHandlers (app As IHostedApplication, enable As Boolean)

Parameters

app
IHostedApplication

Specifies the application record from the web service.

enable
Boolean

True if event handler is enabled, false otherwise.

Remarks

Used at startup time for the session (and app) and for global applications to change their event handler's to the current session whenever the session switches.

Applies to