Partilhar via


SqlCeParameter Constructor (String, SqlDbType, Int32)

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

Initializes a new instance of the SqlCeParameter class with the parameter name, data type, and length.

  [Visual Basic]
  Public Sub New( _
   ByVal 
  name
   As String, _
   ByVal dataType As SqlDbType, _
   ByVal size As Integer _
)
[C#]
public SqlCeParameter(
   string name,SqlDbType dataType,int size
);
[C++]
public: SqlCeParameter(
   String* name,SqlDbType dataType,int size
);
[JScript]
public function SqlCeParameter(
   name : String,
 dataType : SqlDbType,
 size : int);

Parameters

  • name
    The name of the parameter to map.
  • dataType
    One of the SqlDbType values.
  • size
    The length of the parameter.

Remarks

Size is inferred from the value of the dataType parameter if it is not explicitly set in the size parameter.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeParameter Class | SqlCeParameter Members | System.Data.SqlServerCe Namespace | SqlCeParameter Constructor 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.