HubProxyExtensions.GetValue<T> Method

.NET Framework 4

Gets the value of a state variable.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetValue(Of T) ( _
    proxy As IHubProxy, _
    name As String _
) As T
'Usage
Dim proxy As IHubProxy 
Dim name As String 
Dim returnValue As T

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

Type Parameters

  • T
    The type of the state variable

Parameters

Return Value

Type: T
The value of the state variable.

Usage Note

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

HubProxyExtensions Class

Microsoft.AspNet.SignalR.Client.Hubs Namespace