SPContext.GetContext-Methode (HttpContext, Int32, Guid, SPWeb)
Gibt den Kontext Microsoft SharePoint Foundation für ein Listenelement.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetContext ( _
context As HttpContext, _
itemId As Integer, _
listId As Guid, _
web As SPWeb _
) As SPContext
'Usage
Dim context As HttpContext
Dim itemId As Integer
Dim listId As Guid
Dim web As SPWeb
Dim returnValue As SPContext
returnValue = SPContext.GetContext(context, _
itemId, listId, web)
public static SPContext GetContext(
HttpContext context,
int itemId,
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.
itemId
Typ: System.Int32Eine 32-Bit-Ganzzahl, die das Element 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.