Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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.