Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public static SPWebServiceInstance LocalContent { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPWebServiceInstance
An SPWebServiceInstance object that represents the current Web service instance.

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).

© 2015 Microsoft