System.Data.Common.ADP.CollectionRemoveInvalidObject C# (CSharp) Méthode

CollectionRemoveInvalidObject() static private méthode

static private CollectionRemoveInvalidObject ( Type itemType, ICollection collection ) : ArgumentException
itemType System.Type
collection ICollection
Résultat System.ArgumentException
        static internal ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection)
        {
            return Argument(Res.GetString(Res.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name));
        }
        static internal ArgumentNullException CollectionNullValue(string parameter, Type collection, Type itemType)

Usage Example

Exemple #1
0
        public void Remove(DataColumnMapping value)
        {
            if (value == null)
            {
                throw ADP.ColumnsAddNullAttempt("value");
            }
            int index = this.IndexOf(value);

            if (-1 == index)
            {
                throw ADP.CollectionRemoveInvalidObject(this.ItemType, this);
            }
            this.RemoveIndex(index);
        }
All Usage Examples Of System.Data.Common.ADP::CollectionRemoveInvalidObject
ADP