Freigeben über


SPContext.GetContext-Methode (HttpContext)

Gibt den Microsoft SharePoint Foundation Kontext für den angegebenen HTTP-Kontext.

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

Syntax

'Declaration
Public Shared Function GetContext ( _
    context As HttpContext _
) As SPContext
'Usage
Dim context As HttpContext
Dim returnValue As SPContext

returnValue = SPContext.GetContext(context)
public static SPContext GetContext(
    HttpContext context
)

Parameter

  • context
    Typ: System.Web.HttpContext

    Ein System.Web.HTTPContext -Objekt, das den HTTP-spezifische Kontext kapselt, der vom Server zum Verarbeiten von Website-Anfragen verwendet wird.

Rückgabewert

Typ: Microsoft.SharePoint.SPContext
Der SharePoint Foundation -Kontext.

Siehe auch

Referenz

SPContext Klasse

SPContext-Member

GetContext-Überladung

Microsoft.SharePoint-Namespace