Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SqlParameterCollection::Item Property (String^)

 

Gets the SqlParameter with the specified name.

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

public:
[BrowsableAttribute(false)]
property SqlParameter^ default[
	String^ parameterName
] {
	SqlParameter^ get(String^ parameterName);
	void set(String^ parameterName, SqlParameter^ value);
}

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:
© 2017 Microsoft