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> 介面物件時,才可以使用它。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.

適用於