Partilhar via


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

Syntax

'Declaration
<GuidAttribute("F136C998-E403-4F41-903C-40577CE12C09")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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.

See Also

Reference

SPFarmManagedAccountCollection Members

Microsoft.SharePoint.Administration Namespace