共用方式為


SPSite constructor (Guid, SPUrlZone)

初始化根據指定的網站集合的 GUID 和 URL 區域的SPSite類別的新執行個體。

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

Syntax

'宣告
Public Sub New ( _
    id As Guid, _
    zone As SPUrlZone _
)
'用途
Dim id As Guid
Dim zone As SPUrlZone

Dim instance As New SPSite(id, zone)
public SPSite(
    Guid id,
    SPUrlZone zone
)

參數

請參閱

參照

SPSite class

SPSite members

SPSite overload

Microsoft.SharePoint namespace