Npgsql.NpgsqlParameterCollection.Remove C# (CSharp) Method

Remove() public method

Removes the specified NpgsqlParameter from the collection.
public Remove ( string parameterName ) : void
parameterName string The name of the NpgsqlParameter to remove from the collection.
return void
        public void Remove(string parameterName)
        {
            NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "Remove", parameterName);

            int index;

            index = IndexOf(parameterName);

            if (index < 0)
            {
                throw new InvalidOperationException("No parameter with the specified name exists in the collection");
            }

            this.InternalList[index].Collection = null;
            this.InternalList.RemoveAt(index);
            this.InvalidateHashLookups();
        }

Same methods

NpgsqlParameterCollection::Remove ( Npgsql.NpgsqlParameter item ) : bool
NpgsqlParameterCollection::Remove ( object oValue ) : void