다음을 통해 공유


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

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