編集

次の方法で共有


ToolboxCategoryItems.GetEnumerator Method

Definition

Returns an enumerator that iterates through the ToolboxCategoryItems collection.

public:
 virtual System::Collections::Generic::IEnumerator<System::Activities::Presentation::Toolbox::ToolboxCategory ^> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<System.Activities.Presentation.Toolbox.ToolboxCategory> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Activities.Presentation.Toolbox.ToolboxCategory>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Activities.Presentation.Toolbox.ToolboxCategory>
Public Function GetEnumerator () As IEnumerator(Of ToolboxCategory)

Returns

An IEnumerator<T> for the ToolboxCategoryItems.

Implements

Remarks

Enumerators can be used to read the data in a collection, but they cannot be used to modify the underlying collection.

Initially, the enumerator is positioned before the first element in the collection. At this position, Current is undefined. Therefore, you must call MoveNext() to advance the enumerator to the first element of the collection before reading the value of Current. 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 no longer valid and its behavior is undefined.

The enumerator does not have exclusive access to the collection; therefore, enumerating through a collection is intrinsically not a thread-safe procedure.

Applies to