다음을 통해 공유


AdomdErrorResponseException.Errors Property

Gets a reference to the AdomdErrorCollection contained by the exception.

네임스페이스: Microsoft.AnalysisServices.AdomdClient
어셈블리: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

구문

‘선언
Public ReadOnly Property Errors As AdomdErrorCollection
public AdomdErrorCollection Errors { get; }
public:
property AdomdErrorCollection^ Errors {
    AdomdErrorCollection^ get ();
}
/** @property */
public AdomdErrorCollection get_Errors ()
public function get Errors () : AdomdErrorCollection

속성 값

An AdomdErrorCollection that describes the series of errors that led to the exception. The collection contains one or more instances of AdomdError that encapsulate the errors received by the AdomdConnection.

The following subroutine iterates through the Errors collection of an AdomdErrorResponseException in reverse order (from earliest error to latest error), displaying the properties of each AdomdError in the collection:

Public Sub ListAdomdErrors(ByRef ExceptionToCheck As AdomdErrorResponseException)
    Dim errorCount As Integer = ExceptionToCheck.Errors.Count
    Dim errorIndex As Integer

    Debug.WriteLine("Found " & errorCount & _
        " error(s) in AdomdErrorResponseException:")

    With ExceptionToCheck.Errors
        For errorIndex = errorCount - 1 To 0 Step -1
            Debug.WriteLine("Error " & errorIndex & ":")
            Debug.WriteLine("  ErrorCode:  " & _
                .Item(errorIndex).ErrorCode.ToString)
            Debug.WriteLine("  Source:     " & _
                .Item(errorIndex).Source)
            Debug.WriteLine("  Message:    " & _
                .Item(errorIndex).Message)
            Debug.WriteLine("  HelpLink:   " & _
                .Item(errorIndex).HelpLink)
        Next
    End With
End Sub

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

AdomdErrorResponseException Class
AdomdErrorResponseException Members
Microsoft.AnalysisServices.AdomdClient Namespace