XmlDictionaryWriter.WriteValueAsync(IStreamProvider) XmlDictionaryWriter.WriteValueAsync(IStreamProvider) XmlDictionaryWriter.WriteValueAsync(IStreamProvider) XmlDictionaryWriter.WriteValueAsync(IStreamProvider) Method

Definition

Asynchronously writes a value from an IStreamProvider.

public:
 virtual System::Threading::Tasks::Task ^ WriteValueAsync(System::Xml::IStreamProvider ^ value);
public virtual System.Threading.Tasks.Task WriteValueAsync (System.Xml.IStreamProvider value);
abstract member WriteValueAsync : System.Xml.IStreamProvider -> System.Threading.Tasks.Task
override this.WriteValueAsync : System.Xml.IStreamProvider -> System.Threading.Tasks.Task
Public Overridable Function WriteValueAsync (value As IStreamProvider) As Task
Parameters
Returns

The task that represents the asynchronous WriteValue operation.

Exceptions

An XmlDictionaryWriter asynchronous method was called without setting the Async flag to true. In this case, InvalidOperationException is thrown with the message "Set XmlWriterSettings.Async to true if you want to use Async Methods."

Remarks

This is the asynchronous version of WriteValue, with the same functionality. To use this method, you must set the Async flag to true.

Applies to