SPFarmManagedAccountCollection.Item property
Gets the SPManagedAccount object that matches the user name.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
username As String _
) As SPManagedAccount
Get
'Usage
Dim instance As SPFarmManagedAccountCollection
Dim username As String
Dim value As SPManagedAccount
value = instance.Item(username)
public SPManagedAccount this[
string username
] { get; }
Parameters
username
Type: System.StringThe user name.
Property value
Type: Microsoft.SharePoint.Administration.SPManagedAccount
Returns the SPManagedAccount object that matches the user name. Returns a null reference (Nothing in Visual Basic) if no match is found.
See also
Reference
SPFarmManagedAccountCollection class