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

OnDataSetTablesChanging() private method

private OnDataSetTablesChanging ( object oTablesCollection, CollectionChangeEventArgs args ) : void
oTablesCollection object
args CollectionChangeEventArgs
return void
        private void OnDataSetTablesChanging(object oTablesCollection, CollectionChangeEventArgs args)
        {
            // args.Action is one of CollectionChangeAction.Add, CollectionChangeAction.Remove or CollectionChangeAction.Refresh
            // args.Element is a table

            // Disallow changing the tables collection (since we are subscribed only in populated mode, we allow changes in any state but non-populated mode)
            throw new InvalidOperationException(SR.DataDom_DataSetTablesChange);
        }
XmlDataDocument