String.IEnumerable.GetEnumerator 方法

定義

傳回列舉值,可逐一查看目前的 String 物件。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 ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

傳回

可用來逐一查看目前字串的列舉程式。An enumerator that can be used to iterate through the current string.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 String 執行個體轉換成 IEnumerable 介面時,才能使用這個成員。It can be used only when the String instance is cast to an IEnumerable interface. 如需詳細資訊,請參閱 IEnumerable.GetEnumerator 方法。For more information, see the IEnumerable.GetEnumerator method.

適用於