SPFarmManagedAccountCollection class
Represents the collection of managed accounts in the farm.
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.SPFarmManagedAccountCollection
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<GuidAttribute("F136C998-E403-4F41-903C-40577CE12C09")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPFarmManagedAccountCollection _
Implements ICollection(Of SPManagedAccount), IEnumerable(Of SPManagedAccount), _
IEnumerable
'Usage
Dim instance As SPFarmManagedAccountCollection
[GuidAttribute("F136C998-E403-4F41-903C-40577CE12C09")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPFarmManagedAccountCollection : ICollection<SPManagedAccount>,
IEnumerable<SPManagedAccount>, IEnumerable
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.