Udostępnij za pośrednictwem


RequestExtensions.GetHttpContext Method

.NET Framework 4

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetHttpContext ( _
    request As IRequest _
) As HttpContextBase
'Usage
Dim request As IRequest 
Dim returnValue As HttpContextBase 

returnValue = request.GetHttpContext()
public static HttpContextBase GetHttpContext(
    this IRequest request
)
[ExtensionAttribute]
public:
static HttpContextBase^ GetHttpContext(
    IRequest^ request
)
static member GetHttpContext : 
        request:IRequest -> HttpContextBase
public static function GetHttpContext(
    request : IRequest
) : HttpContextBase

Parameters

Return Value

Type: System.Web.HttpContextBase

Usage Note

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

RequestExtensions Class

Microsoft.AspNet.SignalR Namespace