Partager via


ITransport.Disconnected Property

.NET Framework 4

Gets or sets a callback that is invoked when the transport disconnects.

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

Syntax

'Declaration
Property Disconnected As Func(Of Task)
    Get 
    Set
'Usage
Dim instance As ITransport 
Dim value As Func(Of Task)

value = instance.Disconnected

instance.Disconnected = value
Func<Task> Disconnected { get; set; }
property Func<Task^>^ Disconnected {
    Func<Task^>^ get ();
    void set (Func<Task^>^ value);
}
abstract Disconnected : Func<Task> with get, set
function get Disconnected () : Func<Task>
function set Disconnected (value : Func<Task>)

Property Value

Type: System.Func<Task>
Returns Func<TResult>.

See Also

Reference

ITransport Interface

Microsoft.AspNet.SignalR.Transports Namespace