SPContext.GetContext method (SPWeb)

Returns the Microsoft SharePoint Foundation context for the specified Microsoft SharePoint Foundation Web site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function GetContext ( _
    web As SPWeb _
) As SPContext
'Usage
Dim web As SPWeb
Dim returnValue As SPContext

returnValue = SPContext.GetContext(web)
public static SPContext GetContext(
    SPWeb web
)

Parameters

Return value

Type: Microsoft.SharePoint.SPContext
The SharePoint Foundation context.

See also

Reference

SPContext class

SPContext members

GetContext overload

Microsoft.SharePoint namespace