Inheritance: System.Data.Common.DbParameterCollection
Example #1
0
        protected override void SetParameter(string parameterName, DbParameter value)
        {
            int index = RangeCheck(parameterName);

            MdxParameterCollection.ValidateType(value);
            Replace(index, (MdxParameter)value);
        }
Example #2
0
 public override int Add(object value)
 {
     MdxParameterCollection.ValidateType(value);
     Add((MdxParameter)value);
     return(Count - 1);
 }
Example #3
0
 protected override void SetParameter(int index, DbParameter value)
 {
     MdxParameterCollection.ValidateType(value);
     this[index] = (MdxParameter)value;
 }
Example #4
0
 /// <summary>
 /// Removes the specified MdxParameter object from the collection.
 /// </summary>
 /// <param name="value">The MdxParameter object to remove.</param>
 public override void Remove(object value)
 {
     MdxParameterCollection.ValidateType(value);
     Remove((MdxParameter)value);
 }
Example #5
0
 /// <summary>
 /// Inserts the specified index of the MdxParameter object with the specified name into the collection at the specified index.
 /// </summary>
 /// <param name="index">The index at which to insert the MdxParameter object.</param>
 /// <param name="value">The MdxParameter object to insert into the collection.</param>
 public override void Insert(int index, object value)
 {
     MdxParameterCollection.ValidateType(value);
     Insert(index, (MdxParameter)value);
 }