Encoder.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 ()
특성

설명

이 메서드는 개체의 내부 상태를 지웁니다 Encoder . 이 메서드는 이전 데이터 블록의 끝에 있는 후행 문자(예: 일치하지 않는 상위 서로게이트)를 포함하여 이전 호출 GetBytesConvert에서 유지된 상태 정보를 지웁니다.

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

적용 대상