System.Xml.XmlDeclaration.XmlDeclaration C# (CSharp) Méthode

XmlDeclaration() protected méthode

protected XmlDeclaration ( string version, string encoding, string standalone, XmlDocument doc ) : System.Text
version string
encoding string
standalone string
doc XmlDocument
Résultat System.Text
        protected internal XmlDeclaration( string version, string encoding, string standalone, XmlDocument doc ) : base( doc ) {
            if ( version != VERNUM )
                throw new ArgumentException( Res.GetString( Res.Xdom_Version ) );
            if( ( standalone != null ) && ( standalone.Length > 0 )  )
                if ( ( standalone != YES ) && ( standalone != NO ) )
                    throw new ArgumentException( Res.GetString(Res.Xdom_standalone, standalone) );
            this.Encoding = encoding;
            this.Standalone = standalone;
        }