Compartilhar via


ApplicationHost.SetApplicationEventHandlers Method

Sets the event handlers for the application.

Namespace: Microsoft.Uii.Csr
Assembly: Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)

Usage

'Usage
Dim app As IHostedApplication
Dim enable As Boolean

Me.SetApplicationEventHandlers(app, enable)

Syntax

'Declaration
Protected Overridable Sub SetApplicationEventHandlers ( _
    app As IHostedApplication, _
    enable As Boolean _
)
protected virtual void SetApplicationEventHandlers (
    IHostedApplication app,
    bool enable
)
protected:
virtual void SetApplicationEventHandlers (
    IHostedApplication^ app, 
    bool enable
)
protected void SetApplicationEventHandlers (
    IHostedApplication app, 
    boolean enable
)
protected function SetApplicationEventHandlers (
    app : IHostedApplication, 
    enable : boolean
)

Parameters

  • app
    Specifies the application record from the web service.
  • enable
    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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

ApplicationHost Class
ApplicationHost Members
Microsoft.Uii.Csr Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.