Share via


GroupManager.Add Method

.NET Framework 4

Adds a connection to the specified group.

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

Syntax

'Declaration
Public Function Add ( _
    connectionId As String, _
    groupName As String _
) As Task
'Usage
Dim instance As GroupManager 
Dim connectionId As String 
Dim groupName As String 
Dim returnValue As Task 

returnValue = instance.Add(connectionId, _
    groupName)
public Task Add(
    string connectionId,
    string groupName
)
public:
virtual Task^ Add(
    String^ connectionId, 
    String^ groupName
) sealed
abstract Add : 
        connectionId:string * 
        groupName:string -> Task  
override Add : 
        connectionId:string * 
        groupName:string -> Task
public final function Add(
    connectionId : String, 
    groupName : String
) : Task

Parameters

  • connectionId
    Type: System.String
    The connection id to add to the group.

Return Value

Type: System.Threading.Tasks.Task
A task that represents the connection id being added to the group.

Implements

IGroupManager.Add(String, String)

See Also

Reference

GroupManager Class

Microsoft.AspNet.SignalR Namespace