Edit

Share via


XmlDataDocument Constructors

Definition

Initializes a new instance of the XmlDataDocument class.

Overloads

XmlDataDocument()

Initializes a new instance of the XmlDataDocument class.

XmlDataDocument(DataSet)

Initializes a new instance of the XmlDataDocument class with the specified DataSet.

XmlDataDocument()

Source:
XmlDataDocument.cs
Source:
XmlDataDocument.cs
Source:
XmlDataDocument.cs
Source:
XmlDataDocument.cs

Initializes a new instance of the XmlDataDocument class.

public:
 XmlDataDocument();
public XmlDataDocument();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("XmlDataDocument is used for serialization and deserialization. Members from serialized types may be trimmed if not referenced directly.")]
public XmlDataDocument();
Public Sub New ()
Attributes

Remarks

An empty DataSet is created and associated with the XmlDataDocument.

Applies to

XmlDataDocument(DataSet)

Source:
XmlDataDocument.cs
Source:
XmlDataDocument.cs
Source:
XmlDataDocument.cs
Source:
XmlDataDocument.cs

Initializes a new instance of the XmlDataDocument class with the specified DataSet.

public:
 XmlDataDocument(System::Data::DataSet ^ dataset);
public XmlDataDocument(System.Data.DataSet dataset);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("XmlDataDocument is used for serialization and deserialization. Members from serialized types may be trimmed if not referenced directly.")]
public XmlDataDocument(System.Data.DataSet dataset);
new System.Xml.XmlDataDocument : System.Data.DataSet -> System.Xml.XmlDataDocument
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("XmlDataDocument is used for serialization and deserialization. Members from serialized types may be trimmed if not referenced directly.")>]
new System.Xml.XmlDataDocument : System.Data.DataSet -> System.Xml.XmlDataDocument
Public Sub New (dataset As DataSet)

Parameters

dataset
DataSet

The DataSet to load into XmlDataDocument.

Attributes

Remarks

The XmlDataDocument is synchronized with the specified DataSet. Any data in the DataSet is immediately available through the XmlDataDocument. Any changes in the DataSet are propagated in the XmlDataDocument. Any changes made in the XmlDataDocument, provided they match the DataSet schema, are propagated in the DataSet.

See also

Applies to