共用方式為


SPSite.OpenWeb method (Guid)

Returns the Web site with the specified GUID.

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

Syntax

'宣告
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
    Type: System.Guid

    A GUID that specifies which Web site to return.

傳回值

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

請參閱

參照

SPSite class

SPSite members

OpenWeb overload

Microsoft.SharePoint namespace