Represents a connection to a multidimensional data source.
The following tables list the members exposed by the AdomdConnection type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| AdomdConnection | Overloaded. Initializes a new instance of the AdomdConnection class. | 
顶部
Public Properties
(see also Protected Properties )
| 名称 | Description | |
|---|---|---|
| .gif) | ClientVersion | Gets the version of the ADOMD.NET client that implements the AdomdConnection. | 
| .gif) | ConnectionString | Gets or sets the string that the AdomdConnection uses to open an analytical data source. | 
| .gif) | ConnectionTimeout | Gets the time to wait for a connection to be established before the AdomdConnection stops trying to connect and generates an error. | 
| .gif) | Container | (inherited from Component ) | 
| .gif) | Cubes | Gets an instance of a CubeCollection that represents the collection of cubes contained by an analytical data source. | 
| .gif) | Database | Gets the name of the database to be used after the AdomdConnection is open. | 
| .gif) | MiningModels | Gets an instance of a MiningModelCollection that represents the collection of mining models that an analytical data source contains. | 
| .gif) | MiningServices | Gets an instance of a MiningServiceCollection that represents the collection of mining services that an analytical data source contains. | 
| .gif) | MiningStructures | Gets an instance of a MiningStructureCollection that represents the collection of mining structures that an analytical data source contains. | 
| .gif) | ProviderVersion | Gets the version of the XML for Analysis provider that the AdomdConnection uses. | 
| .gif) | ServerVersion | Gets the version of the server used that the AdomdConnection uses. | 
| .gif) | SessionID | Gets or sets the string identifier of the session that the AdomdConnection opened with the server. | 
| .gif) | ShowHiddenObjects | Gets or sets a value that indicates whether hidden objects are returned. | 
| .gif) | Site | (inherited from Component ) | 
| .gif) | State | Gets the current state of the AdomdConnection. | 
顶部
Protected Properties
| 名称 | Description | |
|---|---|---|
| .gif) | CanRaiseEvents | (inherited from Component ) | 
| .gif) | DesignMode | (inherited from Component ) | 
| .gif) | Events | (inherited from Component ) | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
| .gif) | BeginTransaction | Overloaded. Begins a new transaction. | 
| .gif) | ChangeDatabase | Changes the current database of the open AdomdConnection. | 
| .gif) | Clone | Creates and returns an instance of an AdomdConnection based on the current AdomdConnection. Session ID and state are not cloned. | 
| .gif) | Close | Overloaded. Closes the connection to the database and ends the session. | 
| .gif) | CreateCommand | Creates and returns an AdomdCommand that is associated with the AdomdConnection. | 
| .gif) | CreateObjRef | (inherited from MarshalByRefObject ) | 
| .gif) | Dispose | Overloaded. (inherited from Component ) | 
| .gif) | Equals | Overloaded. (inherited from Object ) | 
| .gif) | GetHashCode | (inherited from Object ) | 
| .gif) | GetLifetimeService | (inherited from MarshalByRefObject ) | 
| .gif) | GetSchemaDataSet | Overloaded. Returns schema information from a data source | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | InitializeLifetimeService | (inherited from MarshalByRefObject ) | 
| .gif) | Open | Opens a connection with an analytical data source by using the settings specified in the ConnectionString property of the AdomdConnection. | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | RefreshMetadata | Forces the connection to repopulate all metadata from the server. | 
| .gif) | ToString | (inherited from Component ) | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | Dispose | Overloaded. (inherited from Component ) | 
| .gif) | Finalize | (inherited from Component ) | 
| .gif) | GetService | (inherited from Component ) | 
| .gif) | MemberwiseClone | Overloaded. (inherited from MarshalByRefObject ) | 
顶部
Public Events
| 名称 | Description | |
|---|---|---|
| .gif) | Disposed | (inherited from Component ) | 
顶部
Explicit Interface Implementations
| 名称 | Description | |
|---|---|---|
| System.Data.IDbConnection.BeginTransaction | Overloaded. | |
| System.Data.IDbConnection.CreateCommand | ||
| System.ICloneable.Clone | 
顶部
请参阅
参考
AdomdConnection Class
Microsoft.AnalysisServices.AdomdClient Namespace