IErrorCollection Interface

Provides access to members that control an Error Collection.

Description

Unlike exceptions thrown within a program, COM exceptions do not stop the flow of execution; instead, a COM error object is created within the current thread. The error object supports the IErrorInfo interface, which has methods allowing the client to get the name of the class and interface which created the error, and a description of the error.

QI from IErrorInfo to IErrorCollection.

See the Error Handling in Components topics for more details.

Members

Name Description
Read-only property ErrorCount The count of error records.
Read-only property ErrorDescription The description of the specified error record.

IErrorCollection.ErrorCount Property

The count of error records.

Public ReadOnly Property ErrorCount As Integer
public int ErrorCount {get;}

IErrorCollection.ErrorDescription Property

The description of the specified error record.

Public Function get_ErrorDescription ( _
    ByVal Index As Integer _
) As String
public string get_ErrorDescription (
    int Index
);

Classes that implement IErrorCollection

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.