Delen via


SqlCeErrorCollection.Item Property

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

Gets the error at the specified index.

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

  [Visual Basic]
  Public Default ReadOnly Property Item( _
   ByVal 
  index
   As Integer _
) As SqlCeError
[C#]
public SqlCeError this[int index
] {get;}
[C++]
public: __property SqlCeError* get_Item(int index
);
[JScript]
returnValue = SqlCeErrorCollectionObject.Item(index);
-or-
returnValue = SqlCeErrorCollectionObject(index);

[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 SqlCeError to retrieve.

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

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

Property Value

A SqlCeError that contains the error at the specified index.

Requirements

.NET Framework Security:

See Also

SqlCeErrorCollection Class | SqlCeErrorCollection Members | System.Data.SqlServerCe Namespace

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

Send comments on this topic.

© Microsoft Corporation. All rights reserved.