XmlReader.Close Method

Definition

파생 클래스에서 재정의되면 ReadStateClosed로 변경합니다.When overridden in a derived class, changes the ReadState to Closed.

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

Exceptions

이전 비동기 작업이 완료되기 전에 XmlReader 메서드가 호출되었습니다.An XmlReader method was called before a previous asynchronous operation finished. 이 경우 “비동기 작업이 이미 진행 중입니다.” 메시지를 나타내며 InvalidOperationException이 throw됩니다.In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

Remarks

이 메서드는 또한 읽는 동안 보유 한 모든 리소스를 해제 합니다.This method also releases any resources held during reading. Close 이미 호출 된 경우 아무 동작도 수행 되지 않습니다.If Close has already been called, no action is performed.

Applies to