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)
Available in Sandboxed Solutions: No

public static SPContext GetContext(
	SPWeb web
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

An SPWeb object that represents the Web site.

Return Value

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