Share via


SqlCeParameterCollection.Item Property (Int32)

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets or sets the SqlCeParameter at the specified index.

[C#] In C#, this property is the indexer for the SqlCeParameterCollection class.

  [Visual Basic]
  Overloads Public Default Property Item( _
   ByVal 
  index
   As Integer _
) As SqlCeParameter
[C#]
public SqlCeParameter this[int index
] {get; set;}
[C++]
public: __property SqlCeParameter* get_Item(int index
);
public: __property void set_Item(int index,
   SqlCeParameter*
);
[JScript]
returnValue = SqlCeParameterCollectionObject.Item(index);
SqlCeParameterCollectionObject.Item(index) = returnValue;
-or-
returnValue = SqlCeParameterCollectionObject(index);
SqlCeParameterCollectionObject(index) = 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 property whose type is Object and whose index type is String.

Arguments [JScript]

  • index
    The zero-based index of the parameter to retrieve.

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

  • index
    The zero-based index of the parameter to retrieve.

Property Value

The SqlCeParameter at the specified index.

Exceptions

Exception Type Condition
IndexOutOfRangeException The index specified does not exist.

Requirements

.NET Framework Security:

See Also

SqlCeParameterCollection Class | SqlCeParameterCollection Members | System.Data.SqlServerCe Namespace | SqlCeParameterCollection.Item Overload List

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.