DataSet.Prefix Property
.NET Framework (current version)
Gets or sets an XML prefix that aliases the namespace of the DataSet.
Assembly: System.Data (in System.Data.dll)
The following example sets the Prefix before calling the ReadXml method.
Private Sub ReadData(thisDataSet As DataSet) thisDataSet.Namespace = "CorporationA" thisDataSet.Prefix = "DivisionA" ' Read schema and data. Dim fileName As String = "CorporationA_Schema.xml" thisDataSet.ReadXmlSchema(fileName) fileName = "DivisionA_Report.xml" thisDataSet.ReadXml(fileName) End Sub
.NET Framework
Available since 1.1
Available since 1.1
Show: