Delen via


TeamFoundationNotificationService.FireEvent Method

Fires a single event. This event will the be delivered to all subscriptions that have signed up.

Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
Public Sub FireEvent ( _
    requestContext As TeamFoundationRequestContext, _
    eventSource As String, _
    theEvent As Object _
)
public void FireEvent(
    TeamFoundationRequestContext requestContext,
    string eventSource,
    Object theEvent
)
public:
virtual void FireEvent(
    TeamFoundationRequestContext^ requestContext, 
    String^ eventSource, 
    Object^ theEvent
) sealed
abstract FireEvent : 
        requestContext:TeamFoundationRequestContext * 
        eventSource:string * 
        theEvent:Object -> unit  
override FireEvent : 
        requestContext:TeamFoundationRequestContext * 
        eventSource:string * 
        theEvent:Object -> unit
public final function FireEvent(
    requestContext : TeamFoundationRequestContext, 
    eventSource : String, 
    theEvent : Object
)

Parameters

  • eventSource
    Type: System.String

    Optional: The eventSource can be any string. This allows code on the receiving end of the event to have some context about where the event originated. This value can be null or String.Empty.

  • theEvent
    Type: System.Object

    This is the object that represents the event data.

.NET Framework Security

See Also

Reference

TeamFoundationNotificationService Class

Microsoft.TeamFoundation.Server.Core Namespace