Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SqlCommand Constructor (String^, SqlConnection^, SqlTransaction^, SqlCommandColumnEncryptionSetting)

.NET Framework (current version)
 

Initializes a new instance of the SqlCommand class with specified command text, connection, transaction, and encryption setting.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public:
SqlCommand(
	String^ cmdText,
	SqlConnection^ connection,
	SqlTransaction^ transaction,
	SqlCommandColumnEncryptionSetting columnEncryptionSetting
)

Parameters

cmdText
Type: System::String^

The text of the query.

connection
Type: System.Data.SqlClient::SqlConnection^

A SqlConnection that represents the connection to an instance of SQL Server.

transaction
Type: System.Data.SqlClient::SqlTransaction^

The SqlTransaction in which the SqlCommand executes.

columnEncryptionSetting
Type: System.Data.SqlClient::SqlCommandColumnEncryptionSetting

The encryption setting. For more information, see Always Encrypted.

.NET Framework
Available since 4.6
Return to top
Show:
© 2017 Microsoft