SqlCeCommand Constructor (String, SqlCeConnection)
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Initializes a new instance of the SqlCeCommand class with the text of the query and a SqlCeConnection.
[Visual Basic] Public Sub New( _ ByVal cmdText As String, _ ByVal connection As SqlCeConnection _ ) [C#] public SqlCeCommand( string cmdText,SqlCeConnection connection ); [C++] public: SqlCeCommand( String* cmdText,SqlCeConnection* connection ); [JScript] public function SqlCeCommand( cmdText : String, connection : SqlCeConnection);
Parameters
- cmdText
The text of the query. - connection
A SqlCeConnection that represents the connection to a data source.
Remarks
The following table shows initial property values for an instance of SqlCeCommand.
Properties | Initial Value |
---|---|
CommandText | cmdText |
CommandType | Text |
Connection | A new SqlCeConnection that is the value for the connection parameter. |
You can change the value for any of these parameters by setting the related property.
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
SqlCeCommand Class | SqlCeCommand Members | System.Data.SqlServerCe Namespace | SqlCeCommand Constructor Overload List
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.