XmlDeclaration(String, String, String, XmlDocument) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the XmlDeclaration class.
protected public:
XmlDeclaration(System::String ^ version, System::String ^ encoding, System::String ^ standalone, System::Xml::XmlDocument ^ doc);
protected internal XmlDeclaration (string version, string encoding, string standalone, System.Xml.XmlDocument doc);
protected internal XmlDeclaration (string version, string? encoding, string? standalone, System.Xml.XmlDocument doc);
new System.Xml.XmlDeclaration : string * string * string * System.Xml.XmlDocument -> System.Xml.XmlDeclaration
Protected Friend Sub New (version As String, encoding As String, standalone As String, doc As XmlDocument)
Parameters
- standalone
- String
Indicates whether the XML document depends on an external DTD; see the Standalone property.
- doc
- XmlDocument
The parent XML document.
Remarks
Do not instantiate an XmlDeclaration directly; instead, use methods such as CreateNode.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.