HostContextExtensions.GetValue<T> Method
.NET Framework 4
Namespace: Microsoft.AspNet.SignalR.Hosting
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetValue(Of T) ( _
context As HostContext, _
key As String _
) As T
'Usage
Dim context As HostContext
Dim key As String
Dim returnValue As T
returnValue = context.GetValue(key)
public static T GetValue<T>(
this HostContext context,
string key
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetValue(
HostContext^ context,
String^ key
)
static member GetValue :
context:HostContext *
key:string -> 'T
JScript does not support generic types and methods.
Type Parameters
- T
Parameters
- context
Type: Microsoft.AspNet.SignalR.Hosting.HostContext
- key
Type: System.String
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 HostContext. 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).