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

OnDeletingRow() private méthode

private OnDeletingRow ( DataRow row, XmlBoundElement rowElement ) : void
row DataRow
rowElement XmlBoundElement
Résultat void
        private void OnDeletingRow(DataRow row, XmlBoundElement rowElement)
        {
            // Note that this function is beeing called even if ignoreDataSetEvents == true.

            // Foliate, so we can be able to preserve the nodes even if the DataRow has no longer values for the crtRecord.
            if (IsFoliated(rowElement))
                return;

            bool wasIgnoreXmlEvents = IgnoreXmlEvents;
            IgnoreXmlEvents = true;
            bool wasFoliationEnabled = IsFoliationEnabled;
            IsFoliationEnabled = true;
            try
            {
                Foliate(rowElement);
            }
            finally
            {
                IsFoliationEnabled = wasFoliationEnabled;
                IgnoreXmlEvents = wasIgnoreXmlEvents;
            }
        }
XmlDataDocument