Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Gets or sets the SqlCeParameter with the specified name.
[C#] In C#, this property is the indexer for the SqlCeParameterCollection class.
[Visual Basic] Overloads Public Default Property Item( _ ByVal parameterName As String _ ) As SqlCeParameter [C#] public SqlCeParameter this[string parameterName ] {get; set;} [C++] public: __property SqlCeParameter* get_Item(String* parameterName ); public: __property void set_Item(String* parameterName, SqlCeParameter* ); [JScript] returnValue = SqlCeParameterCollectionObject.Item(parameterName); SqlCeParameterCollectionObject.Item(parameterName) = returnValue; -or- returnValue = SqlCeParameterCollectionObject(parameterName); SqlCeParameterCollectionObject(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 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 SqlCeParameter with the specified name.
Exceptions
| Exception Type | Condition |
|---|---|
| IndexOutOfRangeException | The name specified does not exist. |
Requirements
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
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.