CharEnumerator.Reset CharEnumerator.Reset CharEnumerator.Reset CharEnumerator.Reset Method

定义

将索引初始化为逻辑上位于枚举字符串的第一个字符之前的位置。Initializes the index to a position logically before the first character of the enumerated string.

public:
 virtual void Reset();
public void Reset ();
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
Public Sub Reset ()

实现

注解

类维护枚举字符串的内部索引, Reset方法将索引设置为无效状态。 CharEnumeratorThe CharEnumerator class maintains an internal index to the enumerated string, and the Reset method sets the index to the invalid state.

适用于