System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartProcessingInstruction C# (CSharp) Méthode

WriteStartProcessingInstruction() public méthode

Before writing a processing instruction, perform various checks to ensure well-formedness.
public WriteStartProcessingInstruction ( string target ) : void
target string
Résultat void
        public void WriteStartProcessingInstruction(string target) {
            // Xml state transitions
            ConstructWithinContent(XPathNodeType.ProcessingInstruction);

            // Verify PI name
            ValidateNames.ValidateNameThrow("", target, "", XPathNodeType.ProcessingInstruction, ValidateNames.Flags.AllExceptPrefixMapping);

            this.piTarget = target;
            this.piText = string.Empty;

            this.xstate = XmlState.WithinPI;
            this.depth++;
        }