共用方式為


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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。