Partager via


ResponseExtensions.End Method

.NET Framework 4

Closes the connection to a client with optional data.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function End ( _
    response As IResponse, _
    data As String _
) As Task
'Usage
Dim response As IResponse 
Dim data As String 
Dim returnValue As Task 

returnValue = response.End(data)
public static Task End(
    this IResponse response,
    string data
)
[ExtensionAttribute]
public:
static Task^ End(
    IResponse^ response, 
    String^ data
)
static member End : 
        response:IResponse * 
        data:string -> Task
public static function End(
    response : IResponse, 
    data : String
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
A task that represents when the connection is closed.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IResponse. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

ResponseExtensions Class

Microsoft.AspNet.SignalR.Hosting Namespace