共用方式為


SPSite.ID property

取得識別網站集合的 GUID。

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

Syntax

'宣告
Public ReadOnly Property ID As Guid
    Get
'用途
Dim instance As SPSite
Dim value As Guid

value = instance.ID
public Guid ID { get; }

Property value

Type: System.Guid
識別網站集合的 GUID。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace