SqlCeCommand Constructor (String, SqlCeConnection, SqlCeTransaction)
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, a SqlCeConnection, and the SqlCeTransaction.
[Visual Basic] Public Sub New( _ ByVal cmdText As String, _ ByVal connection As SqlCeConnection, _ ByVal transaction As SqlCeTransaction _ ) [C#] public SqlCeCommand( string cmdText,SqlCeConnection connection,SqlCeTransaction transaction ); [C++] public: SqlCeCommand( String* cmdText,SqlCeConnection* connection,SqlCeTransaction* transaction ); [JScript] public function SqlCeCommand( cmdText : String, connection : SqlCeConnection, transaction : SqlCeTransaction);
Parameters
- cmdText
The text of the query. - connection
A SqlCeConnection that represents the connection to a data source. - transaction
The transaction in which the SqlCeCommand executes.
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.