C# Class MdxClient.MdxParameterCollection

Inheritance: System.Data.Common.DbParameterCollection
ファイルを表示 Open project: DynamicTyped/MdxClient Class Usage Examples

Public Methods

Method Description
Add ( MdxParameter value ) : MdxParameter

Adds an MdxParameter object to the MdxParameterCollection collection.

Add ( string parameterName, object value ) : MdxParameter

Creates a new MdxParameter object with the specified name and value and adds it to the collection.

AddRange ( Array values ) : void

Adds an array of items with the specified values to the MdxParameterCollection.

AddRange ( MdxParameter values ) : void

Adds an array of items with the specified values to the MdxParameterCollection.

Clear ( ) : void

Removes all the MdxParameter objects from the MdxParameterCollection.

Contains ( MdxParameter value ) : bool

Indicates whether an MdxParameter with the specified property exists in the collection.

Contains ( object value ) : bool

Indicates whether an MdxParameter with the specified property exists in the collection.

Contains ( string value ) : bool

Indicates whether an MdxParameter with the specified name exists in the collection.

CopyTo ( Array array, int index ) : void

Copies an array of items to the collection starting at the specified index.

CopyTo ( MdxParameter array, int index ) : void

Copies an array of items to the collection starting at the specified index.

GetEnumerator ( ) : IEnumerator

Exposes the GetEnumerator method, which supports a simple iteration over a collection by a .NET Framework data provider.

IndexOf ( MdxParameter value ) : int

Returns the index of the specified MdxParameter object.

IndexOf ( object value ) : int

Returns the index of the specified MdxParameter object.

IndexOf ( string parameterName ) : int

Returns the index of the specified MdxParameter object.

Insert ( int index, MdxParameter value ) : void
Insert ( int index, object value ) : void

Inserts the specified index of the MdxParameter object with the specified name into the collection at the specified index.

Remove ( MdxParameter value ) : void

Removes the specified MdxParameter object from the collection.

Remove ( object value ) : void

Removes the specified MdxParameter object from the collection.

RemoveAt ( int index ) : void

Removes the MdxParameter object at the specified from the collection.

RemoveAt ( string parameterName ) : void

Removes a specified MdxParameter object from the collection.

Protected Methods

Method Description
GetParameter ( int index ) : DbParameter
GetParameter ( string parameterName ) : DbParameter
SetParameter ( int index, DbParameter value ) : void
SetParameter ( string parameterName, DbParameter value ) : void

Private Methods

Method Description
Add ( object value ) : int
Find ( string parameterName ) : MdxParameter
MdxParameterCollection ( ) : System
RangeCheck ( string parameterName ) : int
RangeCheck ( int index ) : void
RemoveIndex ( int index ) : void
Replace ( int index, MdxParameter newValue ) : void
Validate ( int index, MdxParameter value ) : void
ValidateType ( object value ) : void

Method Details

Add() public method

Adds an MdxParameter object to the MdxParameterCollection collection.
public Add ( MdxParameter value ) : MdxParameter
value MdxParameter The MdxParameter object to be added.
return MdxParameter

Add() public method

Creates a new MdxParameter object with the specified name and value and adds it to the collection.
public Add ( string parameterName, object value ) : MdxParameter
parameterName string The name of the MdxParameter to add.
value object The value of the MdxParameter object to be created.
return MdxParameter

AddRange() public method

Adds an array of items with the specified values to the MdxParameterCollection.
public AddRange ( Array values ) : void
values System.Array An array of values of type MdxParameter to add to the collection.
return void

AddRange() public method

Adds an array of items with the specified values to the MdxParameterCollection.
public AddRange ( MdxParameter values ) : void
values MdxParameter An array of values of type MdxParameter to add to the collection.
return void

Clear() public method

Removes all the MdxParameter objects from the MdxParameterCollection.
public Clear ( ) : void
return void

Contains() public method

Indicates whether an MdxParameter with the specified property exists in the collection.
public Contains ( MdxParameter value ) : bool
value MdxParameter The value of the MdxParameter to look for in the collection.
return bool

Contains() public method

Indicates whether an MdxParameter with the specified property exists in the collection.
public Contains ( object value ) : bool
value object The value of the MdxParameter to look for in the collection.
return bool

Contains() public method

Indicates whether an MdxParameter with the specified name exists in the collection.
public Contains ( string value ) : bool
value string The name of the MdxParameter to look for in the collection.
return bool

CopyTo() public method

Copies an array of items to the collection starting at the specified index.
public CopyTo ( Array array, int index ) : void
array System.Array The array of items to copy to the collection.
index int The index in the collection to copy the items.
return void

CopyTo() public method

Copies an array of items to the collection starting at the specified index.
public CopyTo ( MdxParameter array, int index ) : void
array MdxParameter The array of items to copy to the collection.
index int The index in the collection to copy the items.
return void

GetEnumerator() public method

Exposes the GetEnumerator method, which supports a simple iteration over a collection by a .NET Framework data provider.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetParameter() protected method

protected GetParameter ( int index ) : DbParameter
index int
return System.Data.Common.DbParameter

GetParameter() protected method

protected GetParameter ( string parameterName ) : DbParameter
parameterName string
return System.Data.Common.DbParameter

IndexOf() public method

Returns the index of the specified MdxParameter object.
public IndexOf ( MdxParameter value ) : int
value MdxParameter The MdxParameter object in the collection.
return int

IndexOf() public method

Returns the index of the specified MdxParameter object.
public IndexOf ( object value ) : int
value object The MdxParameter object in the collection.
return int

IndexOf() public method

Returns the index of the specified MdxParameter object.
public IndexOf ( string parameterName ) : int
parameterName string The name of the MdxParameter object in the collection.
return int

Insert() public method

public Insert ( int index, MdxParameter value ) : void
index int
value MdxParameter
return void

Insert() public method

Inserts the specified index of the MdxParameter object with the specified name into the collection at the specified index.
public Insert ( int index, object value ) : void
index int The index at which to insert the MdxParameter object.
value object The MdxParameter object to insert into the collection.
return void

Remove() public method

Removes the specified MdxParameter object from the collection.
public Remove ( MdxParameter value ) : void
value MdxParameter The MdxParameter object to remove.
return void

Remove() public method

Removes the specified MdxParameter object from the collection.
public Remove ( object value ) : void
value object The MdxParameter object to remove.
return void

RemoveAt() public method

Removes the MdxParameter object at the specified from the collection.
public RemoveAt ( int index ) : void
index int The index where the MdxParameter object is located.
return void

RemoveAt() public method

Removes a specified MdxParameter object from the collection.
public RemoveAt ( string parameterName ) : void
parameterName string The name of the MdxParameter object to remove.
return void

SetParameter() protected method

protected SetParameter ( int index, DbParameter value ) : void
index int
value System.Data.Common.DbParameter
return void

SetParameter() protected method

protected SetParameter ( string parameterName, DbParameter value ) : void
parameterName string
value System.Data.Common.DbParameter
return void