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 name of the SqlCeParameter.
[Visual Basic] Public Overridable Property ParameterName As String Implements _ IDataParameter.ParameterName [C#] public virtual string ParameterName {get; set;} [C++] public: __property virtual String* get_ParameterName(); public: __property virtual void set_ParameterName(String*); [JScript] public function get ParameterName() : String; public function set ParameterName(String);
Property Value
The name of the SqlCeParameter. The default is an empty string.
Implements
Remarks
The SQL Server CE .NET Provider uses positional parameters that are marked with a question mark (?) instead of named parameters. Although not required, it is recommended to set ParameterName to a string begninig with '@' .
Example
[Visual Basic, C#, C++] The following example creates a SqlCeParameter and sets some of its properties.
[Visual Basic]
Public Sub CreateSqlCeParameter()
Dim myParameter As New SqlCeParameter()
myParameter.ParameterName = "@Description"
End Sub 'CreateSqlCeParameter
[C#]
public void CreateSqlCeParameter() {
SqlCeParameter myParameter = new SqlCeParameter();
myParameter.ParameterName = "@Description";
}
[C++]
public:
void CreateSqlCeParameter()
{
SqlCeParameter* myParameter = new SqlCeParameter();
myParameter->ParameterName = S"@Description";
}
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: .NET Compact Framework
.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
SqlCeParameter Class | SqlCeParameter Members | System.Data.SqlServerCe Namespace
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.