편집

다음을 통해 공유


String.IEnumerable.GetEnumerator Method

Definition

Returns an enumerator that iterates through the current String object.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

Returns

An enumerator that can be used to iterate through the current string.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the String instance is cast to an IEnumerable interface. For more information, see the IEnumerable.GetEnumerator method.

Applies to