XmlWriter.WriteProcessingInstructionAsync(String, String) 메서드

정의

이름과 텍스트 사이의 공백을 사용하여 처리 명령을 비동기적으로 씁니다(예: <?name text?>).

public:
 virtual System::Threading::Tasks::Task ^ WriteProcessingInstructionAsync(System::String ^ name, System::String ^ text);
public virtual System.Threading.Tasks.Task WriteProcessingInstructionAsync (string name, string text);
public virtual System.Threading.Tasks.Task WriteProcessingInstructionAsync (string name, string? text);
abstract member WriteProcessingInstructionAsync : string * string -> System.Threading.Tasks.Task
override this.WriteProcessingInstructionAsync : string * string -> System.Threading.Tasks.Task
Public Overridable Function WriteProcessingInstructionAsync (name As String, text As String) As Task

매개 변수

name
String

처리 명령의 이름입니다.

text
String

처리 명령에 포함할 텍스트입니다.

반환

Task

비동기 WriteProcessingInstruction 작업(operation)을 나타내는 작업(task)입니다.

예외

이전 비동기 작업이 완료되기 전에 XmlWriter 메서드가 호출되었습니다. 이 경우 “비동기 작업이 이미 진행 중입니다.” 메시지를 나타내며 InvalidOperationException이 throw됩니다.

또는

Async 플래그를 true로 설정하지 않고 XmlWriter 비동기 메서드가 호출되었습니다. 이 경우 InvalidOperationException은 “비동기 메서드를 사용하려면 XmlWriterSettings.Async를 true로 설정하십시오.”라는 메시지와 함께 throw됩니다.

설명

이 버전은 동일한 기능을 갖춘 비동기 버전 WriteProcessingInstruction입니다. 이 메서드를 사용하려면 플래그를 .로 Async true설정해야 합니다.

적용 대상

추가 정보