SqlParameterCollection.Item Property (String)


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)

Public Property Item (
	parameterName As String
) As SqlParameter


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

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