System.Data.XmlSchemaWriter.XmlSchemaWriter C# (CSharp) Метод

XmlSchemaWriter() публичный Метод

public XmlSchemaWriter ( DataSet dataset, XmlWriter writer, DataTableCollection tables, DataRelationCollection relations ) : System
dataset DataSet
writer System.Xml.XmlWriter
tables DataTableCollection
relations DataRelationCollection
Результат System
		public XmlSchemaWriter (DataSet dataset,
			XmlWriter writer, DataTableCollection tables,
			DataRelationCollection relations)
		{
			dataSetName = dataset.DataSetName;
			dataSetNamespace = dataset.Namespace;
#if NET_2_0
			dataSetLocale = dataset.LocaleSpecified ? dataset.Locale : null;
#else
			dataSetLocale = dataset.Locale;
#endif
			dataSetProperties = dataset.ExtendedProperties;
			w = writer;
			if (tables != null) {
				this.tables = new DataTable[tables.Count];
				for(int i=0;i<tables.Count;i++) this.tables[i] = tables[i];
			}
			if (relations != null) {
				this.relations = new DataRelation[relations.Count];
				for(int i=0;i<relations.Count;i++) this.relations[i] = relations[i];
			}
		}

Same methods

XmlSchemaWriter::XmlSchemaWriter ( XmlWriter writer, DataTable tables, DataRelation relations, string mainDataTable, string dataSetName, CultureInfo locale ) : System