Share via


SPContext.GetContext - Méthode (HttpContext, String, Guid, SPWeb)

Retourne le contexte Microsoft SharePoint Foundation pour un article à l'aide de l'ID de l'élément spécifié, un ID de liste et un site Web.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function GetContext ( _
    context As HttpContext, _
    itemId As String, _
    listId As Guid, _
    web As SPWeb _
) As SPContext
'Utilisation
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
)

Paramètres

  • itemId
    Type : System.String

    Entier 32 bits qui identifie l'élément.

  • listId
    Type : System.Guid

    System.Guid qui identifie la liste.

Valeur renvoyée

Type : Microsoft.SharePoint.SPContext
Le contexte SharePoint Foundation .

Voir aussi

Référence

SPContext classe

SPContext - Membres

GetContext - Surcharge

Microsoft.SharePoint - Espace de noms