共用方式為


SPSiteCollection.WebApplication property

取得此集合內的集合會儲存在哪個網站的 Web 應用程式。

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

Syntax

'宣告
Public ReadOnly Property WebApplication As SPWebApplication
    Get
'用途
Dim instance As SPSiteCollection
Dim value As SPWebApplication

value = instance.WebApplication
public SPWebApplication WebApplication { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPWebApplication
SPWebApplication 物件,代表 Web 應用程式。

請參閱

參照

SPSiteCollection class

SPSiteCollection members

Microsoft.SharePoint.Administration namespace