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
httpContext
Typ: System.Web.HttpContextDas HttpContext -Objekt für das Abrufen den Dienstkontext.
Rückgabewert
Typ: Microsoft.SharePoint.SPServiceContext
Das SPServiceContext -Objekt, das das angegebene HttpContext -Objekt zugeordnet ist.