SPContext.GetContext-Methode (HttpContext, String, Guid, SPWeb)
Gibt den Kontext Microsoft SharePoint Foundation für ein Element mit der angegebenen Element-ID, die Listen-ID und Website.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetContext ( _
context As HttpContext, _
itemId As String, _
listId As Guid, _
web As SPWeb _
) As SPContext
'Usage
Dim context As HttpContext
Dim itemId As String
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,
string itemId,
Guid listId,
SPWeb web
)
Parameter
- context
Typ: System.Web.HttpContext
itemId
Typ: System.StringEine 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.