共用方式為


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