共用方式為


SPAppInstance.SiteId property

取得包含此應用程式執行個體安裝所在的 SPWeb 的 SharePoint 網站。

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

Syntax

'宣告
Public ReadOnly Property SiteId As Guid
    Get
'用途
Dim instance As SPAppInstance
Dim value As Guid

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

Property value

Type: System.Guid
SharePoint 網站。

請參閱

參照

SPAppInstance class

SPAppInstance members

Microsoft.SharePoint.Administration namespace