Method WriteProcessingInstruction
- Namespace
- Alternet.FormDesigner.Wpf.XamlDom
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
WriteProcessingInstruction(string, string)
When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: <?name text?>.
public override void WriteProcessingInstruction(string name, string text)
Parameters
name
stringThe name of the processing instruction.
text
stringThe text to include in the processing instruction.
Exceptions
- ArgumentException
The text would result in a non-well formed XML document.
name
is either null or String.Empty.This method is being used to create an XML declaration after WriteStartDocument() has already been called.- InvalidOperationException
An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.”