String.IEnumerable<Char>.GetEnumerator 方法

定义

返回循环访问当前 String 对象的枚举数。Returns an enumerator that iterates through the current String object.

 virtual System::Collections::Generic::IEnumerator<char> ^ System.Collections.Generic.IEnumerable<char>.GetEnumerator() = System::Collections::Generic::IEnumerable<char>::GetEnumerator;
System.Collections.Generic.IEnumerator<char> IEnumerable<char>.GetEnumerator ();
Function GetEnumerator () As IEnumerator(Of Char) Implements IEnumerable(Of Char).GetEnumerator

返回

可用于循环访问当前 String 对象的强类型化枚举器。A strongly-typed enumerator that can be used to iterate through the current String object.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 仅当 String 实例强制转换为 IEnumerable<T> interface 对象时,才能使用此方法。It can be used only when the String instance is cast to an IEnumerable<T> interface object. 有关更多信息,请参见 GetEnumerator 方法。For more information, see the GetEnumerator method.

适用于