NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLParameters.Item (String)

Gets the SQLParameter with the specified name.

[C#] In C#, this member is the indexer for the SQLParameters class.

[Visual Basic]
Overloads Public Default Property Item( _
   ByVal parameterName As String _
) As SQLParameter
[C#]
public SQLParameter this[
   string parameterName
] {get; set;}
[C++]
public: __property SQLParameter* get_Item(
   String* parameterName
);
public: __property void set_Item(
   String* parameterName,
   SQLParameter*
);
[JScript]
returnValue = SQLParametersObject.Item(parameterName);
SQLParametersObject.Item(parameterName) = returnValue;
-or-
returnValue = SQLParametersObject(parameterName);
SQLParametersObject(parameterName) = returnValue;

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.

Arguments [JScript]

parameterName
The name of the parameter to retrieve.

Parameters [Visual Basic, C#, C++]

parameterName
The name of the parameter to retrieve.

Property Value

The SQLParameter with the specified name or null if the parameter is not found.

Exceptions

Exception Type Condition
ParametersSourceIndex The specified name does not exist.

See Also

SQLParameters Class | SQLParameters Members | System.Data.SQL Namespace | SQLParameters.Item Overload List