System.Xml.XmlDataDocument.Bind C# (CSharp) Method

Bind() private method

private Bind ( bool fLoadFromDataSet ) : void
fLoadFromDataSet bool
return void
        private void Bind(bool fLoadFromDataSet)
        {
            // If we have a DocumentElement then it is illegal to call this func to load from data-set
            Debug.Assert(DocumentElement == null || !fLoadFromDataSet);

            _ignoreDataSetEvents = true;
            _ignoreXmlEvents = true;

            // Do the mapping. This could be a successive mapping in case of this scenario: xd = XmlDataDocument( emptyDataSet ); xd.Load( "file.xml" );
            _mapper.SetupMapping(this, _dataSet);

            if (DocumentElement != null)
            {
                LoadDataSetFromTree();
                BindListeners();
            }
            else if (fLoadFromDataSet)
            {
                _bLoadFromDataSet = true;
                LoadTreeFromDataSet(DataSet);
                BindListeners();
            }

            _ignoreDataSetEvents = false;
            _ignoreXmlEvents = false;
        }

Same methods

XmlDataDocument::Bind ( DataRow r, XmlBoundElement e ) : void
XmlDataDocument