Share via


SPServiceContext.GetContext-Methode (HttpContext)

Ruft den Dienstkontext, der die angegebene HttpContext -Objekt zugeordnet ist.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function GetContext ( _
    httpContext As HttpContext _
) As SPServiceContext
'Usage
Dim httpContext As HttpContext
Dim returnValue As SPServiceContext

returnValue = SPServiceContext.GetContext(httpContext)
public static SPServiceContext GetContext(
    HttpContext httpContext
)

Parameter

Rückgabewert

Typ: Microsoft.SharePoint.SPServiceContext
Das SPServiceContext -Objekt, das das angegebene HttpContext -Objekt zugeordnet ist.

Siehe auch

Referenz

SPServiceContext Klasse

SPServiceContext-Member

GetContext-Überladung

Microsoft.SharePoint-Namespace