Share via


AudienceSiteCollection.AudienceSiteEnumerator Class

Enumerates sites in the AudienceSiteCollection class.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Server.Audience.AudienceSiteCollection.AudienceSiteEnumerator

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class AudienceSiteEnumerator _
    Implements IEnumerator
'Usage
Dim instance As AudienceSiteCollection.AudienceSiteEnumerator
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class AudienceSiteEnumerator : IEnumerator

Remarks

An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is irrecoverably invalidated, and the next call to MoveNext or Reset throws an exception. If the collection is modified between MoveNext and Current, Current returns the element that it is set to, even if the enumerator is already invalidated.

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

AudienceSiteCollection.AudienceSiteEnumerator Members

Microsoft.Office.Server.Audience Namespace