SqlCeParameter.ParameterName Property
Gets or sets the name of the SqlCeParameter.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides Property ParameterName As String
Get
Set
'Usage
Dim instance As SqlCeParameter
Dim value As String
value = instance.ParameterName
instance.ParameterName = value
public override string ParameterName { get; set; }
public:
virtual property String^ ParameterName {
String^ get () override;
void set (String^ value) override;
}
abstract ParameterName : string with get, set
override ParameterName : string with get, set
override function get ParameterName () : String
override function set ParameterName (value : String)
Property Value
Type: System.String
The name of the SqlCeParameter. The default is an empty string.
Implements
Remarks
The .NET Compact Framework Data Provider for SQL Server Compact 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 beginning with '@'.
Examples
The following example creates a SqlCeParameter and sets the ParameterName property.
Dim param As New SqlCeParameter()
param.ParameterName = "@Description"
SqlCeParameter param = new SqlCeParameter();
param.ParameterName = "@Description";