共用方式為


SPContext.GetContext method (SPWeb)

傳回指定的Microsoft SharePoint Foundation Web 站台的Microsoft SharePoint Foundation內容。

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

Syntax

'宣告
Public Shared Function GetContext ( _
    web As SPWeb _
) As SPContext
'用途
Dim web As SPWeb
Dim returnValue As SPContext

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

參數

傳回值

Type: Microsoft.SharePoint.SPContext
SharePoint Foundation內容中。

請參閱

參照

SPContext class

SPContext members

GetContext overload

Microsoft.SharePoint namespace