Compartir a través de


SqlCeParameter Constructor (String, SqlDbType)

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 and data type.

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

Parameters

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

Remarks

The data type and, if appropriate, Size and Precision are inferred from the value of the dataType 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.