SqlParameterCollection.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 the SqlParameter with the specified name.

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

<BrowsableAttribute(False)>
Public Property Item (
	parameterName As String
) As SqlParameter

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: