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)
Available in Sandboxed Solutions: No

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