Skip to main content
.NET Framework Class Library
StringIEnumerableCharGetEnumerator Method

Returns an enumerator that iterates through the current String object.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)
Syntax
Private Function GetEnumerator As [%$TOPIC/cc672334_en-us_VS_110_2_0_0_0_0%](Of [%$TOPIC/cc672334_en-us_VS_110_2_0_0_0_1%])
	Implements [%$TOPIC/cc672334_en-us_VS_110_2_0_0_0_2%](Of [%$TOPIC/cc672334_en-us_VS_110_2_0_0_0_3%]).[%$TOPIC/cc672334_en-us_VS_110_2_0_0_0_4%]
[%$TOPIC/cc672334_en-us_VS_110_2_0_1_0_0%]<[%$TOPIC/cc672334_en-us_VS_110_2_0_1_0_1%]> [%$TOPIC/cc672334_en-us_VS_110_2_0_1_0_2%]<[%$TOPIC/cc672334_en-us_VS_110_2_0_1_0_3%]>.[%$TOPIC/cc672334_en-us_VS_110_2_0_1_0_4%]()
private:
virtual [%$TOPIC/cc672334_en-us_VS_110_2_0_2_0_0%]<[%$TOPIC/cc672334_en-us_VS_110_2_0_2_0_1%]>^ GetEnumerator() sealed = [%$TOPIC/cc672334_en-us_VS_110_2_0_2_0_2%]<[%$TOPIC/cc672334_en-us_VS_110_2_0_2_0_3%]>::[%$TOPIC/cc672334_en-us_VS_110_2_0_2_0_4%]
private abstract GetEnumerator : unit -> [%$TOPIC/cc672334_en-us_VS_110_2_0_3_0_0%]<[%$TOPIC/cc672334_en-us_VS_110_2_0_3_0_1%]> 
private override GetEnumerator : unit -> [%$TOPIC/cc672334_en-us_VS_110_2_0_3_0_2%]<[%$TOPIC/cc672334_en-us_VS_110_2_0_3_0_3%]> 
JScript does not support explicit interface implementations.

Return Value

Type: System.Collections.GenericIEnumerator Char
A IEnumeratorT of type Char that can be used to iterate through the current String object.

Implements

IEnumerableTGetEnumerator
Remarks

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

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8