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

WriteStartNamespace() public méthode

Before writing a namespace, perform various checks to ensure well-formedness.
public WriteStartNamespace ( string prefix ) : void
prefix string
Résultat void
        public void WriteStartNamespace(string prefix) {
            Debug.Assert(prefix != null, "Invalid argument");

            // Handle namespace attributes that are not sent directly to WriteNamespaceDeclaration
            ConstructInEnumAttrs(XPathNodeType.Namespace);
            this.nmspPrefix = prefix;
            this.nmspText = string.Empty;

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