Decoder.Reset 메서드

정의

파생 클래스에서 재정의되는 경우 디코더를 초기 상태로 다시 설정합니다.

public:
 virtual void Reset();
public virtual void Reset();
[System.Runtime.InteropServices.ComVisible(false)]
public virtual void Reset();
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
[<System.Runtime.InteropServices.ComVisible(false)>]
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
Public Overridable Sub Reset ()
특성

설명

이 메서드는 개체의 내부 상태를 지웁니다 Decoder . 이 메서드는 이전 데이터 블록의 끝에 있는 후행 바이트를 포함하여 이전 호출 GetCharsConvert에서 유지된 상태 정보를 지웁니다.

예외가 Reset throwGetCharsConvert된 후에도 동일한 디코더를 다시 사용하려는 경우 또는 GetCharCount디코더가 스트림을 전환하고 다른 스트림을 디코딩하기 시작하는 경우에도 애플리케이션에서 메서드를 호출해야 합니다.

적용 대상