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 . 메서드는 이전 GetChars Convert 데이터 블록의 끝에 있는 후행 바이트를 포함 하 여 또는에 대 한 이전 호출에서 유지 된 모든 상태 정보를 지웁니다.

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

적용 대상