XmlWriter.WriteNodeAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
원본 개체에서 현재 기록기 인스턴스로 모든 항목을 비동기적으로 복사합니다.
오버로드
| Name | Description |
|---|---|
| WriteNodeAsync(XPathNavigator, Boolean) |
개체의 XPathNavigator 모든 항목을 기록기에 비동기적으로 복사합니다. 남아 있는 위치는 XPathNavigator 변경되지 않습니다. |
| WriteNodeAsync(XmlReader, Boolean) |
판독기에서 작성기에 이르기까지 모든 항목을 비동기적으로 복사하고 판독기를 다음 형제의 시작으로 이동합니다. |
설명
동일한 기능을 가진 비동기 버전 WriteNode입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.
WriteNodeAsync(XPathNavigator, Boolean)
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
개체의 XPathNavigator 모든 항목을 기록기에 비동기적으로 복사합니다. 남아 있는 위치는 XPathNavigator 변경되지 않습니다.
public:
virtual System::Threading::Tasks::Task ^ WriteNodeAsync(System::Xml::XPath::XPathNavigator ^ navigator, bool defattr);
public virtual System.Threading.Tasks.Task WriteNodeAsync(System.Xml.XPath.XPathNavigator navigator, bool defattr);
abstract member WriteNodeAsync : System.Xml.XPath.XPathNavigator * bool -> System.Threading.Tasks.Task
override this.WriteNodeAsync : System.Xml.XPath.XPathNavigator * bool -> System.Threading.Tasks.Task
Public Overridable Function WriteNodeAsync (navigator As XPathNavigator, defattr As Boolean) As Task
매개 변수
- navigator
- XPathNavigator
XPathNavigator 복사할 원본입니다.
- defattr
- Boolean
true기본 특성을 복사하려면 다음을 실행합니다. 그렇지 않으면 . false
반환
비동 WriteNode 기 작업을 나타내는 작업입니다.
예외
XmlWriter 이전 비동기 작업이 완료되기 전에 메서드가 호출되었습니다. 이 경우 InvalidOperationException "비동기 작업이 이미 진행 중입니다."라는 메시지와 함께 throw됩니다.
-또는-
플래그true를 XmlWriter .로 설정하지 않고 비동기 메서드를 호출했습니다Async. 이 경우 InvalidOperationException "Async 메서드를 사용하려는 경우 XmlWriterSettings.Async를 true로 설정"이라는 메시지와 함께 throw됩니다.
설명
동일한 기능을 가진 비동기 버전 WriteNode입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.
이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 WriteNode(XPathNavigator, Boolean)throw된 예외를 참조하세요.
추가 정보
적용 대상
WriteNodeAsync(XmlReader, Boolean)
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
판독기에서 작성기에 이르기까지 모든 항목을 비동기적으로 복사하고 판독기를 다음 형제의 시작으로 이동합니다.
public:
virtual System::Threading::Tasks::Task ^ WriteNodeAsync(System::Xml::XmlReader ^ reader, bool defattr);
public virtual System.Threading.Tasks.Task WriteNodeAsync(System.Xml.XmlReader reader, bool defattr);
abstract member WriteNodeAsync : System.Xml.XmlReader * bool -> System.Threading.Tasks.Task
override this.WriteNodeAsync : System.Xml.XmlReader * bool -> System.Threading.Tasks.Task
Public Overridable Function WriteNodeAsync (reader As XmlReader, defattr As Boolean) As Task
매개 변수
- defattr
- Boolean
반환
비동 WriteNode 기 작업을 나타내는 작업입니다.
예외
XmlWriter 이전 비동기 작업이 완료되기 전에 메서드가 호출되었습니다. 이 경우 InvalidOperationException "비동기 작업이 이미 진행 중입니다."라는 메시지와 함께 throw됩니다.
-또는-
플래그true를 XmlWriter .로 설정하지 않고 비동기 메서드를 호출했습니다Async. 이 경우 InvalidOperationException "Async 메서드를 사용하려는 경우 XmlWriterSettings.Async를 true로 설정"이라는 메시지와 함께 throw됩니다.
설명
동일한 기능을 가진 비동기 버전 WriteNode입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.
이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 WriteNode(XmlReader, Boolean)throw된 예외를 참조하세요.