SPFarm.DefaultServiceAccount property

Gets the default service process account.

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

Syntax

'Declaration
Public ReadOnly Property DefaultServiceAccount As SPProcessAccount
    Get
'Usage
Dim instance As SPFarm
Dim value As SPProcessAccount

value = instance.DefaultServiceAccount
public SPProcessAccount DefaultServiceAccount { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPProcessAccount
SPProcessAccount is the default service process account.

See also

Reference

SPFarm class

SPFarm members

Microsoft.SharePoint.Administration namespace