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

OnDataSetTablesChanging() private méthode

private OnDataSetTablesChanging ( object oTablesCollection, CollectionChangeEventArgs args ) : void
oTablesCollection object
args CollectionChangeEventArgs
Résultat 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