Freigeben über


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

  • itemId
    Typ: System.String

    Eine 32-Bit-Ganzzahl, die das Element identifiziert.

  • listId
    Typ: System.Guid

    Eine System.Guid , die in der Liste aufgeführt.

Rückgabewert

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

Siehe auch

Referenz

SPContext Klasse

SPContext-Member

GetContext-Überladung

Microsoft.SharePoint-Namespace