System.Data.DataTableCollection.Remove C# (CSharp) Метод

Remove() публичный Метод

Removes the table with a specified name from the collection.
public Remove ( string name ) : void
name string
Результат void
        public void Remove(string name)
        {
            long logScopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTableCollection.Remove|API> {0}, name='{1}'", ObjectID, name);
            try
            {
                DataTable dt = this[name];
                if (dt == null)
                {
                    throw ExceptionBuilder.TableNotInTheDataSet(name);
                }
                Remove(dt);
            }
            finally
            {
                DataCommonEventSource.Log.ExitScope(logScopeId);
            }
        }

Same methods

DataTableCollection::Remove ( DataTable table ) : void
DataTableCollection::Remove ( string name, string tableNamespace ) : void