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
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object that represents the Web site.
Return value
Type: Microsoft.SharePoint.SPContext
The SharePoint Foundation context.