BusinessLogicCommand 类

Represents a business logic command.

继承层次结构

System.Object
  Microsoft.SqlServer.Replication.BusinessLogicSupport.BusinessLogicCommand

命名空间:  Microsoft.SqlServer.Replication.BusinessLogicSupport
程序集:  Microsoft.SqlServer.Replication.BusinessLogicSupport(在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)

语法

声明
Public Class BusinessLogicCommand _
    Implements IDbCommand, IDisposable
用法
Dim instance As BusinessLogicCommand
public class BusinessLogicCommand : IDbCommand, 
    IDisposable
public ref class BusinessLogicCommand : IDbCommand, 
    IDisposable
type BusinessLogicCommand =  
    class 
        interface IDbCommand 
        interface IDisposable 
    end
public class BusinessLogicCommand implements IDbCommand, IDisposable

BusinessLogicCommand 类型公开以下成员。

构造函数

  名称 说明
公共方法 BusinessLogicCommand() Initializes a new instance of the BusinessLogicCommand class.
公共方法 BusinessLogicCommand(String) Initializes a new instance of the BusinessLogicCommand class.
公共方法 BusinessLogicCommand(BusinessLogicConnection) Initializes a new instance of the BusinessLogicCommand class.
公共方法 BusinessLogicCommand(BusinessLogicConnection, TempDBResultSet) Initializes a new instance of the BusinessLogicCommand class.
公共方法 BusinessLogicCommand(String, BusinessLogicConnection, BusinessLogicTransaction) Initializes a new instance of the BusinessLogicCommand class.

页首

属性

  名称 说明
公共属性 CommandText Gets or sets the text command to run against the data source.
公共属性 CommandTimeout Gets or sets the time in seconds to wait for the command to execute.
公共属性 CommandType Gets or sets the command type.
公共属性 Connection Gets or sets the connection to the data source.
公共属性 Parameters Gets the collection of business logic parameters.
公共属性 Transaction Gets or sets the transaction within which the command executes.
公共属性 UpdatedRowSource Gets or sets the updated row source.

页首

方法

  名称 说明
公共方法 Cancel Cancels the execution of a BusinessLogicCommand.
公共方法 CreateParameter Creates a new instance of an IDbDataParameter object.
公共方法 Dispose Releases all resources used by the current instance of the BusinessLogicCommand.
公共方法 Equals (从 Object 继承。)
公共方法 ExecuteNonQuery Executes a statement against a connection object.
公共方法 ExecuteReader() Executes the CommandText against the Connection, and returns an IDataReader.
公共方法 ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and returns an IDataReader using one of the CommandBehavior.
公共方法 ExecuteScalar Executes the query and returns the first column of the first row in the result set returned by the query.
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 Prepare Creates a prepared version of the command on the data source.
公共方法 ToString (从 Object 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有属性 IDbCommand.Parameters Gets the IDataParameterCollection.

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Replication.BusinessLogicSupport 命名空间