ApplicationHost.SetApplicationEventHandlers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.