SPSite.OpenWeb 方法 (Guid)

Returns the Web site with the specified GUID.

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

语法

声明
Public Function OpenWeb ( _
    gWebId As Guid _
) As SPWeb
用法
Dim instance As SPSite
Dim gWebId As Guid
Dim returnValue As SPWeb

returnValue = instance.OpenWeb(gWebId)
public SPWeb OpenWeb(
    Guid gWebId
)

参数

  • gWebId
    类型:System.Guid

    A GUID that specifies which Web site to return.

返回值

类型:Microsoft.SharePoint.SPWeb
An SPWeb object that represents the Web site.

另请参阅

引用

SPSite 类

SPSite 成员

OpenWeb 重载

Microsoft.SharePoint 命名空间