SPContext.GetContext 方法 (SPWeb)

返回指定的Microsoft SharePoint Foundation网站的Microsoft SharePoint Foundation上下文。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
)

参数

返回值

类型:Microsoft.SharePoint.SPContext
SharePoint Foundation上下文中。

另请参阅

引用

SPContext 类

SPContext 成员

GetContext 重载

Microsoft.SharePoint 命名空间