SPContext.GetContext-Methode (HttpContext, Guid, Guid, SPWeb)
Gibt den Kontext Microsoft SharePoint Foundation für eine Ansicht.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetContext ( _
context As HttpContext, _
viewId As Guid, _
listId As Guid, _
web As SPWeb _
) As SPContext
'Usage
Dim context As HttpContext
Dim viewId As Guid
Dim listId As Guid
Dim web As SPWeb
Dim returnValue As SPContext
returnValue = SPContext.GetContext(context, _
viewId, listId, web)
public static SPContext GetContext(
HttpContext context,
Guid viewId,
Guid listId,
SPWeb web
)
Parameter
context
Typ: System.Web.HttpContextEin System.Web.HTTPContext -Objekt, das den HTTP-spezifische Kontext kapselt, der vom Server zum Verarbeiten von Website-Anfragen verwendet wird.
viewId
Typ: System.GuidEine System.Guid , die die Ansicht identifiziert.
listId
Typ: System.GuidEine System.Guid , die in der Liste aufgeführt.
web
Typ: Microsoft.SharePoint.SPWebDer-Website.
Rückgabewert
Typ: Microsoft.SharePoint.SPContext
Der SharePoint Foundation -Kontext.