AdomdError 类
Represents a server or provider-specific error.
继承层次结构
System. . :: . .Object
Microsoft.AnalysisServices.AdomdClient..::..AdomdError
命名空间: Microsoft.AnalysisServices.AdomdClient
程序集: Microsoft.AnalysisServices.AdomdClient(在 Microsoft.AnalysisServices.AdomdClient.dll 中)
语法
声明
<SerializableAttribute> _
Public NotInheritable Class AdomdError
用法
Dim instance As AdomdError
[SerializableAttribute]
public sealed class AdomdError
[SerializableAttribute]
public ref class AdomdError sealed
[<SealedAttribute>]
[<SerializableAttribute>]
type AdomdError = class end
public final class AdomdError
AdomdError 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
ErrorCode | Gets the error code of the AdomdError. | |
HelpLink | Gets a link to the Help file associated with the AdomdError. | |
Location | Gets the AdomdErrorLocation describing the location of the error. | |
Message | Gets the error message of the AdomdError. | |
Source | Gets the name of the application or object that caused the error associated with the AdomdError. |
页首
方法
名称 | 说明 | |
---|---|---|
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
ToString | Returns a String that represents the current Object. (覆盖 Object. . :: . .ToString() () () ()。) |
页首
注释
The AdomdError represents an XML for Analysis error received or raised by the provider during the execution of a statement or query. The properties of the AdomdError map directly to the subelements of the Error element in the XML for Analysis 1.1 specification, as described in the following table.
AdomdError property name |
XML for Analysis error subelement name |
---|---|
ErrorCode |
ErrorCode |
HelpLink |
HelpFile |
Message |
Description |
Source |
Source |
Location |
Location |
The AdomdError objects themselves are not directly raised in ADOMD.NET. Instead, they are contained within the Errors property of an AdomdErrorResponseException.
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。