共用方式為


AdomdConnection 成員

Represents a connection to a multidimensional data source.

AdomdConnection 型別公開下列成員。

建構函式

  名稱 描述
公用方法 AdomdConnection() () () () Initializes a new instance of the AdomdConnection class with default values.
公用方法 AdomdConnection(String) Initializes a new instance of the AdomdConnection class by using the specified connection string.
公用方法 AdomdConnection(AdomdConnection) Initializes a new instance of the AdomdConnection class by using values from a specified AdomdConnection class. The session identifier and command state are not the same.

頂端

方法

  名稱 描述
公用方法 BeginTransaction() () () () Begins a new transaction.
公用方法 BeginTransaction(IsolationLevel) Begins a new transaction with the specified IsolationLevel enumeration value.
公用方法 ChangeDatabase Changes the current database of the open AdomdConnection.
公用方法 Clone Creates and returns an instance of an AdomdConnection based on the current AdomdConnection. Session ID and state are not cloned.
公用方法 Close() () () () Closes the connection to the database and ends the session.
公用方法 Close(Boolean) Closes the connection to the database, indicating whether to end the session.
公用方法 CreateCommand Creates and returns an AdomdCommand that is associated with the AdomdConnection.
公用方法 CreateObjRef (繼承自 MarshalByRefObject。)
公用方法 Dispose (繼承自 Component。)
受保護的方法 Dispose (繼承自 Component。)
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Component。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetLifetimeService (繼承自 MarshalByRefObject。)
公用方法 GetSchemaDataSet(Guid, array<Object> [] () [] []) Returns schema information from a data source by using a Guid object to specify which schema information to return and by applying any specified restrictions to the information.
公用方法 GetSchemaDataSet(String, AdomdRestrictionCollection) Returns schema information from a data source by using a schema name to identify which schema to retrieve and by applying any specified restrictions to the information.
公用方法 GetSchemaDataSet(Guid, array<Object> [] () [] [], Boolean) Returns schema information from a data source by using a Guid object to identify the information, applying any specified restrictions on the information, and optionally throwing an exception when inline errors occur.
公用方法 GetSchemaDataSet(String, AdomdRestrictionCollection, Boolean) Returns schema information from a data source by using a schema name to identify the information, applying any specified restrictions to the information, and optionally throwing an exception when inline errors occur.
公用方法 GetSchemaDataSet(String, String, AdomdRestrictionCollection) Returns schema information from a data source by using a schema name and namespace to identify the information, and by applying any specified restrictions to the information.
公用方法 GetSchemaDataSet(String, String, AdomdRestrictionCollection, Boolean) Returns schema information from a data source by using a schema name and namespace to identify the information, applying any specified restrictions to the information, and, optionally throwing an exception when inline errors occur.
受保護的方法 GetService (繼承自 Component。)
公用方法 GetType (繼承自 Object。)
公用方法 InitializeLifetimeService (繼承自 MarshalByRefObject。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 MarshalByRefObject。)
公用方法 Open() () () () Opens a connection with an analytical data source by using the settings specified in the ConnectionString property of the AdomdConnection.
公用方法 Open(String)
公用方法 RefreshMetadata Forces the connection to repopulate all metadata from the server.
公用方法 ToString (繼承自 Component。)

頂端

屬性

  名稱 描述
受保護的屬性 CanRaiseEvents (繼承自 Component。)
公用屬性 ClientVersion Gets the version of the ADOMD.NET client that implements the AdomdConnection.
公用屬性 ConnectionString Gets or sets the string that the AdomdConnection uses to open an analytical data source.
公用屬性 ConnectionTimeout Gets the time to wait for a connection to be established before the AdomdConnection stops trying to connect and generates an error.
公用屬性 Container (繼承自 Component。)
公用屬性 Cubes Gets an instance of a CubeCollection that represents the collection of cubes contained by an analytical data source.
公用屬性 Database Gets the name of the database to be used after the AdomdConnection is open.
受保護的屬性 DesignMode (繼承自 Component。)
受保護的屬性 Events (繼承自 Component。)
公用屬性 MiningModels Gets an instance of a MiningModelCollection that represents the collection of mining models that an analytical data source contains.
公用屬性 MiningServices Gets an instance of a MiningServiceCollection that represents the collection of mining services that an analytical data source contains.
公用屬性 MiningStructures Gets an instance of a MiningStructureCollection that represents the collection of mining structures that an analytical data source contains.
公用屬性 ProviderVersion Gets the version of the XML for Analysis provider that the AdomdConnection uses.
公用屬性 ServerVersion Gets the version of the server used that the AdomdConnection uses.
公用屬性 SessionID Gets or sets the string identifier of the session that the AdomdConnection opened with the server.
公用屬性 ShowHiddenObjects Gets or sets a value that indicates whether hidden objects are returned.
公用屬性 Site (繼承自 Component。)
公用屬性 State Gets the current state of the AdomdConnection.

頂端

事件

  名稱 描述
公用事件 Disposed (繼承自 Component。)

頂端