System.Xml.XmlBaseWriter.WriteString C# (CSharp) Méthode

WriteString() public méthode

public WriteString ( XmlDictionaryString value ) : void
value XmlDictionaryString
Résultat void
        public override void WriteString(XmlDictionaryString value)
        {
            if (IsClosed)
                ThrowClosed();

            if (value == null)
                throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value));

            if (value.Value.Length > 0)
            {
                FlushBase64();

                if (_attributeValue != null)
                    WriteAttributeText(value.Value);

                if (!_isXmlnsAttribute)
                {
                    StartContent(value.Value);
                    _writer.WriteEscapedText(value);
                    EndContent();
                }
            }
        }

Same methods

XmlBaseWriter::WriteString ( string value ) : void