共用方式為


SPWebServiceInstance.LocalContent property

取得目前的伺服器執行的目前 Web 服務執行個體。

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

Syntax

'宣告
Public Shared ReadOnly Property LocalContent As SPWebServiceInstance
    Get
'用途
Dim value As SPWebServiceInstance

value = SPWebServiceInstance.LocalContent
public static SPWebServiceInstance LocalContent { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPWebServiceInstance
SPWebServiceInstance 物件,代表目前的 Web 服務執行個體。

備註

LocalContent屬性為靜態的可以用來傳回目前的 Web 服務執行個體,如下所示: SPWebServiceInstance myCurrentWebService = SPWebServiceInstance.LocalContent (在 Visual Basic: Dim myCurrentWebService As SPWebServiceInstance = SPWebServiceInstance.LocalContent)。

請參閱

參照

SPWebServiceInstance class

SPWebServiceInstance members

Microsoft.SharePoint.Administration namespace