System.Xml.XmlDataDocument.AttachDataSet C# (CSharp) Méthode

AttachDataSet() private méthode

private AttachDataSet ( DataSet ds ) : void
ds System.Data.DataSet
Résultat void
        private void AttachDataSet(DataSet ds)
        {
            // You should not have already an associated dataset
            Debug.Assert(_dataSet == null);
            Debug.Assert(ds != null);
            if (ds.FBoundToDocument)
                throw new ArgumentException(SR.DataDom_MultipleDataSet);
            ds.FBoundToDocument = true;
            _dataSet = ds;
            // Register the special listener to catch the first DataRow event(s)
            BindSpecialListeners();
        }
XmlDataDocument