다음을 통해 공유


AudienceCollection.AudienceEnumerator.Reset Method

Sets the enumerator to its initial position, which is before the first element in the 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 AudienceCollection.AudienceEnumerator

instance.Reset()
public void Reset()

Implements

IEnumerator.Reset()

Remarks

The enumerator remains valid as long as this 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

AudienceCollection.AudienceEnumerator Class

AudienceCollection.AudienceEnumerator Members

Microsoft.Office.Server.Audience Namespace