SPWebServiceInstance.LocalAdministration property

Gets the current Central Administratiion Web service instance that is running on the current server.

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

Syntax

'Declaration
Public Shared ReadOnly Property LocalAdministration As SPWebServiceInstance
    Get
'Usage
Dim value As SPWebServiceInstance

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

Property value

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

Remarks

The LocalContent property is static and can be used as follows to return the current Web service instance: SPWebServiceInstance myCurrentAdminWebService = SPWebServiceInstance.LocalAdministration (in Visual Basic: Dim myCurrentAdminWebService As SPWebServiceInstance = SPWebServiceInstance.LocalAdministration).

See also

Reference

SPWebServiceInstance class

SPWebServiceInstance members

Microsoft.SharePoint.Administration namespace