Share via


ConnectionExtensions.GetValue<T> Method

.NET Framework 4

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetValue(Of T) ( _
    connection As IConnection, _
    key As String _
) As T
'Usage
Dim connection As IConnection 
Dim key As String 
Dim returnValue As T

returnValue = connection.GetValue(key)
public static T GetValue<T>(
    this IConnection connection,
    string key
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetValue(
    IConnection^ connection, 
    String^ key
)
static member GetValue : 
        connection:IConnection * 
        key:string -> 'T 
JScript does not support generic types and methods.

Type Parameters

  • T

Parameters

Return Value

Type: T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConnection. 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

ConnectionExtensions Class

Microsoft.AspNet.SignalR.Client Namespace