SqlParameterCollection.Item Property (String)

 

Gets the SqlParameter with the specified name.

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

[<BrowsableAttribute(false)>]
member Item : 
        parameterName:string -> SqlParameter with get, set

Parameters

parameterName
Type: System.String

The name of the parameter to retrieve.

Property Value

Type: System.Data.SqlClient.SqlParameter

The SqlParameter with the specified name.

Exception Condition
IndexOutOfRangeException

The specified parameterName is not valid.

The parameterName is used to look up the index value in the underlying SqlParameterCollection. If the parameterName is not valid, an IndexOutOfRangeException will be thrown.

.NET Framework
Available since 1.1
Return to top
Show: