共用方式為


SPWebApplication.WebService property

取得上層 Web 應用程式的 Web 服務。

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

Syntax

'宣告
Public ReadOnly Property WebService As SPWebService
    Get
'用途
Dim instance As SPWebApplication
Dim value As SPWebService

value = instance.WebService
public SPWebService WebService { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPWebService
SPWebService object,代表 Web 服務的父物件。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace