XdmWriter.WriteProcessingInstruction MethodXdmWriter.WriteProcessingInstruction MethodXdmWriter::WriteProcessingInstruction Method

Writes out a processing instruction with a space between the name and text as follows: <?name text?>.

Syntax

Public Overrides Sub WriteProcessingInstruction( _
    name As String, _
    text As String _
)
public override void WriteProcessingInstruction(
    string name,
    string text
)
public:
virtual void WriteProcessingInstruction(
    String^ name, 
    String^ text
) override
 

Parameters

name

Type: System.StringSystem.StringSystem::String^

The name of the processing instruction.

text

Type: System.StringSystem.StringSystem::String^

The text to include in the processing instruction.

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentException 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 WriteStartDocumentWriteStartDocumentWriteStartDocument has already been called.