Share via


SPProcessAccount.LookupManagedAccount method

Looks up the managed process account information in the local farm.

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

Syntax

'Declaration
Public Shared Function LookupManagedAccount ( _
    sid As SecurityIdentifier _
) As SPProcessAccount
'Usage
Dim sid As SecurityIdentifier
Dim returnValue As SPProcessAccount

returnValue = SPProcessAccount.LookupManagedAccount(sid)
public static SPProcessAccount LookupManagedAccount(
    SecurityIdentifier sid
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.SPProcessAccount
An SPProcessAccount with the process account information corresponding to the specified security identifier, or null, if the security identifier did not match a managed account.

See also

Reference

SPProcessAccount class

SPProcessAccount members

Microsoft.SharePoint.Administration namespace