共用方式為


SPWeb.ID property

取得網站中的 GUID。

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

Syntax

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

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

Property value

Type: System.Guid
全域唯一識別項的網站。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace