XmlWriter.WriteRawAsync Méthode
Définition
Écrit manuellement de façon asynchrone un balisage brut.Asynchronously writes raw markup manually.
Surcharges
WriteRawAsync(String) |
Écrit de façon asynchrone un balisage brut à partir d'une chaîne.Asynchronously writes raw markup manually from a string. |
WriteRawAsync(Char[], Int32, Int32) |
Écrit manuellement de façon asynchrone un balisage brut à partir d'une mémoire tampon de caractères.Asynchronously writes raw markup manually from a character buffer. |
Remarques
Il s’agit de la version asynchrone de WriteRaw , avec la même fonctionnalité.This is the asynchronous version of WriteRaw, with the same functionality. Pour utiliser cette méthode, vous devez affecter la valeur Async à l’indicateur true
.To use this method, you must set the Async flag to true
.
WriteRawAsync(String)
Écrit de façon asynchrone un balisage brut à partir d'une chaîne.Asynchronously writes raw markup manually from a string.
public:
virtual System::Threading::Tasks::Task ^ WriteRawAsync(System::String ^ data);
public virtual System.Threading.Tasks.Task WriteRawAsync (string data);
abstract member WriteRawAsync : string -> System.Threading.Tasks.Task
override this.WriteRawAsync : string -> System.Threading.Tasks.Task
Public Overridable Function WriteRawAsync (data As String) As Task
Paramètres
- data
- String
Chaîne contenant le texte à écrire.String containing the text to write.
Retours
Tâche qui représente l'opération WriteRaw
asynchrone.The task that represents the asynchronous WriteRaw
operation.
Exceptions
Une méthode XmlWriter a été appelée avant la fin d’une opération asynchrone précédente.An XmlWriter method was called before a previous asynchronous operation finished. Dans ce cas, l’exception InvalidOperationException est levée avec le message « Une opération asynchrone est déjà en cours ».In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."
- ou --or-
Une méthode asynchrone XmlWriter a été appelée sans définir l’indicateur Async sur true
.An XmlWriter asynchronous method was called without setting the Async flag to true
. Dans ce cas, InvalidOperationException est levée avec le message « Attribuez à XmlReaderSettings.Async la valeur True si vous voulez utiliser des méthodes asynchrones ».In this case, InvalidOperationException is thrown with the message "Set XmlWriterSettings.Async to true if you want to use Async Methods."
Remarques
Il s’agit de la version asynchrone de WriteRaw , avec la même fonctionnalité.This is the asynchronous version of WriteRaw, with the same functionality. Pour utiliser cette méthode, vous devez affecter la valeur Async à l’indicateur true
.To use this method, you must set the Async flag to true
.
Voir aussi
- Programmation asynchrone (C#)Asynchronous programming (C#)
- Programmation asynchrone avec Async et await (Visual Basic)Asynchronous programming with Async and Await (Visual Basic)
S’applique à
WriteRawAsync(Char[], Int32, Int32)
Écrit manuellement de façon asynchrone un balisage brut à partir d'une mémoire tampon de caractères.Asynchronously writes raw markup manually from a character buffer.
public:
virtual System::Threading::Tasks::Task ^ WriteRawAsync(cli::array <char> ^ buffer, int index, int count);
public virtual System.Threading.Tasks.Task WriteRawAsync (char[] buffer, int index, int count);
abstract member WriteRawAsync : char[] * int * int -> System.Threading.Tasks.Task
override this.WriteRawAsync : char[] * int * int -> System.Threading.Tasks.Task
Public Overridable Function WriteRawAsync (buffer As Char(), index As Integer, count As Integer) As Task
Paramètres
- buffer
- Char[]
Tableau de caractères contenant le texte à écrire.Character array containing the text to write.
- index
- Int32
Emplacement dans la mémoire tampon indiquant le début du texte à écrire.The position within the buffer indicating the start of the text to write.
- count
- Int32
Nombre de caractères à écrire.The number of characters to write.
Retours
Tâche qui représente l'opération WriteRaw
asynchrone.The task that represents the asynchronous WriteRaw
operation.
Exceptions
Une méthode XmlWriter a été appelée avant la fin d’une opération asynchrone précédente.An XmlWriter method was called before a previous asynchronous operation finished. Dans ce cas, l’exception InvalidOperationException est levée avec le message « Une opération asynchrone est déjà en cours ».In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."
- ou --or-
Une méthode asynchrone XmlWriter a été appelée sans définir l’indicateur Async sur true
.An XmlWriter asynchronous method was called without setting the Async flag to true
. Dans ce cas, InvalidOperationException est levée avec le message « Attribuez à XmlReaderSettings.Async la valeur True si vous voulez utiliser des méthodes asynchrones ».In this case, InvalidOperationException is thrown with the message "Set XmlWriterSettings.Async to true if you want to use Async Methods."
Remarques
Il s’agit de la version asynchrone de WriteRaw , avec la même fonctionnalité.This is the asynchronous version of WriteRaw, with the same functionality. Pour utiliser cette méthode, vous devez affecter la valeur Async à l’indicateur true
.To use this method, you must set the Async flag to true
.
Voir aussi
- Programmation asynchrone (C#)Asynchronous programming (C#)
- Programmation asynchrone avec Async et await (Visual Basic)Asynchronous programming with Async and Await (Visual Basic)