DbParameterCollection::Item Property (Int32)

 

Gets and sets the DbParameter at the specified index.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public:
property DbParameter^ default[
	int index
] {
	DbParameter^ get(int index);
	void set(int index, DbParameter^ value);
}

Parameters

index
Type: System::Int32

The zero-based index of the parameter.

Property Value

Type: System.Data.Common::DbParameter^

The DbParameter at the specified index.

Exception Condition
IndexOutOfRangeException

The specified index does not exist.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show: