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

WriteWhitespace() public méthode

public WriteWhitespace ( string ws ) : void
ws string
Résultat void
        public override void WriteWhitespace( string ws ) {
            // "checkNames" is intentional here; if false, the whitespaces are checked in XmlWellformedWriter
            if ( checkNames ) {
                int i;
                if ( ( i = xmlCharType.IsOnlyWhitespaceWithPos( ws ) ) != -1 ) {
                    throw new ArgumentException( Res.GetString( Res.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionStr( ws[i] ) ) );
                }
            }
            writer.WriteWhitespace( ws );
        }