Share via


AudienceSiteCollection.AudienceSiteEnumerator.Reset method

Sets the enumerator to its initial position, which is before the first element in this collection.

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

Syntax

'Declaration
Public Sub Reset
'Usage
Dim instance As AudienceSiteCollection.AudienceSiteEnumerator

instance.Reset()
public void Reset()

Implements

IEnumerator.Reset()

Remarks

The 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.

See also

Reference

AudienceSiteCollection.AudienceSiteEnumerator class

AudienceSiteCollection.AudienceSiteEnumerator members

Microsoft.Office.Server.Audience namespace