A Sandcastle Documented Class Library

# IEventHookService RaiseEvent Method (Guid, Object, EventArgs)

Raises an application event.

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    void RaiseEvent(
    	Guid eventHookId,
    	Object sender,
    	EventArgs args
    )

    Sub RaiseEvent (
    	eventHookId As Guid,
    	sender As Object,
    	args As EventArgs
    )

    void RaiseEvent(
    	Guid eventHookId,
    	Object^ sender,
    	EventArgs^ args
    )

    abstract RaiseEvent :
            eventHookId : Guid *
            sender : Object *
            args : EventArgs -> unit

#### Parameters

eventHookId
  Type: System
  Guid
  The ID of the event hook.
sender
  Type: System
  Object
  The sender.
args
  Type: System
  EventArgs
  The EventArgs instance containing the event data.

Exceptions

Exception | Condition
--- | ---
ArgumentException | eventHookId was Empty. -or- An attempt was made to raise a system event but args was not the correct type for the corresponding event. Only thrown if the event has at least one subscriber.
ArgumentNullException | args was .

See Also

#### Reference

IEventHookService Interface
RaiseEvent Overload
Dundas.BI Namespace
Dundas.BI
CoreEventHookIds