Share via


Subscription.AddEvent Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Messaging
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Overridable Function AddEvent ( _
    key As String, _
    topic As Topic _
) As Boolean
'Usage
Dim instance As Subscription 
Dim key As String 
Dim topic As Topic 
Dim returnValue As Boolean 

returnValue = instance.AddEvent(key, topic)
public virtual bool AddEvent(
    string key,
    Topic topic
)
public:
virtual bool AddEvent(
    String^ key, 
    Topic^ topic
)
abstract AddEvent : 
        key:string * 
        topic:Topic -> bool  
override AddEvent : 
        key:string * 
        topic:Topic -> bool
public function AddEvent(
    key : String, 
    topic : Topic
) : boolean

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

See Also

Reference

Subscription Class

Microsoft.AspNet.SignalR.Messaging Namespace