SqlCeParameter Constructor (String, SqlDbType, Int32, String)
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, length, and source column name.
[Visual Basic] Public Sub New( _ ByVal name As String, _ ByVal dataType As SqlDbType, _ ByVal size As Integer, _ ByVal srcColumn As String _ ) [C#] public SqlCeParameter( string name,SqlDbType dataType,int size,string srcColumn ); [C++] public: SqlCeParameter( String* name,SqlDbType dataType,int size,String* srcColumn ); [JScript] public function SqlCeParameter( name : String, dataType : SqlDbType, size : int, srcColumn : String);
Parameters
- name
The name of the parameter to map. - dataType
One of the SqlDbType values. - size
The length of the parameter. - srcColumn
The name of the source column.
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:
- 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 | SqlCeParameter Constructor Overload List
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.