XmlDictionaryWriter.WriteBase64Async(Byte[], Int32, Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 이진 바이트를 Base64로 비동기적으로 인코딩하고 결과 텍스트를 씁니다.
public:
override System::Threading::Tasks::Task ^ WriteBase64Async(cli::array <System::Byte> ^ buffer, int index, int count);
public override System.Threading.Tasks.Task WriteBase64Async(byte[] buffer, int index, int count);
override this.WriteBase64Async : byte[] * int * int -> System.Threading.Tasks.Task
Public Overrides Function WriteBase64Async (buffer As Byte(), index As Integer, count As Integer) As Task
매개 변수
- buffer
- Byte[]
인코딩할 바이트 배열입니다.
- index
- Int32
쓸 바이트의 시작을 나타내는 버퍼의 위치입니다.
- count
- Int32
쓸 바이트 수입니다.
반환
비동 WriteBase64 기 작업을 나타내는 작업입니다.
예외
XmlDictionaryWriter 이전 비동기 작업이 완료되기 전에 메서드가 호출되었습니다. 이 경우 InvalidOperationException "비동기 작업이 이미 진행 중입니다."라는 메시지와 함께 throw됩니다.
-또는-
플래그true를 XmlDictionaryWriter .로 설정하지 않고 비동기 메서드를 호출했습니다Async. 이 경우 InvalidOperationException "Async 메서드를 사용하려는 경우 XmlWriterSettings.Async를 true로 설정"이라는 메시지와 함께 throw됩니다.
설명
이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.