DbParameterCollection.Item Property (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets and sets the DbParameter with the specified name.

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

public DbParameter this[
	string parameterName
] { get; set; }

Parameters

parameterName
Type: System.String

The name of the parameter.

Property Value

Type: System.Data.Common.DbParameter

The DbParameter with the specified name.

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: