AdomdCommand 类

Represents a command to run against a analytical data source.

继承层次结构

System. . :: . .Object
  Microsoft.AnalysisServices.AdomdServer..::..AdomdCommand

命名空间:  Microsoft.AnalysisServices.AdomdServer
程序集:  msmgdsrv(在 msmgdsrv.dll 中)

语法

声明
Public NotInheritable Class AdomdCommand _
    Implements IDisposable, IDbCommand, ICloneable
用法
Dim instance As AdomdCommand
public sealed class AdomdCommand : IDisposable, 
    IDbCommand, ICloneable
public ref class AdomdCommand sealed : IDisposable, 
    IDbCommand, ICloneable
[<SealedAttribute>]
type AdomdCommand =  
    class
        interface IDisposable
        interface IDbCommand
        interface ICloneable
    end
public final class AdomdCommand implements IDisposable, IDbCommand, ICloneable

AdomdCommand 类型公开以下成员。

构造函数

  名称 说明
公共方法 AdomdCommand() () () () Initializes a new instance of the AdomdCommand class with default values.
公共方法 AdomdCommand(String) Initializes a new instance of the AdomdCommand class with the text of the command.

页首

属性

  名称 说明
公共属性 CommandText Gets or sets the command to run.
公共属性 CommandTimeout Gets or sets the time to wait for a command to run before the AdomdCommand stops trying to run the command and generates an error.
公共属性 CommandType Gets or sets the System.Data..::..CommandType used by the AdomdCommand.
公共属性 Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters that the AdomdCommand uses to run the command.

页首

方法

  名称 说明
公共方法 {dtor} Releases all resources used by the AdomdCommand.
公共方法 Cancel Tries to cancel the command that the AdomdCommand is currently running.
公共方法 Clone Creates and returns an instance of an AdomdCommand class based on the current AdomdCommand.
公共方法 CreateParameter Returns a newly created AdomdParameter.
公共方法 Dispose Releases all resources used by the AdomdCommand.
公共方法 Equals (从 Object 继承。)
公共方法 ExecuteNonQuery Runs the AdomdCommand without returning any results.
公共方法 ExecuteReader() () () () Runs the AdomdCommand and returns an AdomdDataReader.
公共方法 ExecuteReader(CommandBehavior) Runs the AdomdCommand using the specified CommandBehavior enumeration value and returns an AdomdDataReader.
公共方法 ExecuteScalar This member is reserved for future use.
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 Prepare Verifies that the AdomdCommand can run.
公共方法 ToString (从 Object 继承。)

页首

线程安全

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