Udostępnij za pośrednictwem


ReliableSqlConnection.CreateCommand Method

Creates and returns a SqlCommand object that is associated with the underlying SqlConnection.

Namespace: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling
Assembly: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Data (in Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Data.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public SqlCommand CreateCommand()
'Declaration
Public Function CreateCommand As SqlCommand
public:
SqlCommand^ CreateCommand()

Return Value

Type: SqlCommand
A System.Data.SqlClient.SqlCommand object that is associated with the underlying connection.

See Also

ReliableSqlConnection Class

ReliableSqlConnection Members

Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace