Edit

Bagikan melalui


XmlDeclaration(String, String, String, XmlDocument) Constructor

Definition

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

version
String

The XML version; see the Version property.

encoding
String

The encoding scheme; see the Encoding property.

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