SPWebServiceInstance.LocalContent Property
Gets the current Web service instance that is running on the current server.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared ReadOnly Property LocalContent As SPWebServiceInstance
Get
'Usage
Dim value As SPWebServiceInstance
value = SPWebServiceInstance.LocalContent
public static SPWebServiceInstance LocalContent { get; }
Property Value
Type: Microsoft.SharePoint.Administration.SPWebServiceInstance
An SPWebServiceInstance object that represents the current Web service instance.
Remarks
The LocalContent property is static and can be used as follows to return the current Web service instance: SPWebServiceInstance myCurrentWebService = SPWebServiceInstance.LocalContent (in Visual Basic: Dim myCurrentWebService As SPWebServiceInstance = SPWebServiceInstance.LocalContent).