System.Xml.XmlCharCheckingWriter.WriteProcessingInstruction C# (CSharp) Méthode

WriteProcessingInstruction() public méthode

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
Résultat void
        public override void WriteProcessingInstruction( string name, string text ) {
            if ( checkNames ) {
                ValidateNCName( name );
            }
            if ( text != null ) {
                if ( checkValues ) {
                    CheckCharacters( text );
                    text = InterleaveInvalidChars( text, '?', '>' );
                }
                if ( replaceNewLines ) {
                    text = ReplaceNewLines( text );
                }
            }
            writer.WriteProcessingInstruction( name, text );
        }