Share via


IErrorLog.AddError method

Used to add errors in an implementation of the IErrorLog interface used in a custom data importer.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub AddError ( _
    pszPropName As String, _
    ByRef pExcepInfo As EXCEPINFO _
)
'Usage
Dim instance As IErrorLog
Dim pszPropName As String
Dim pExcepInfo As EXCEPINFO

instance.AddError(pszPropName, pExcepInfo)
void AddError(
    string pszPropName,
    ref EXCEPINFO pExcepInfo
)

Parameters

  • pszPropName
    Type: System.String

    The name of the property that raised the error.

  • pExcepInfo
    Type: EXCEPINFO

    A pointer to the exception that was raised when the error occurred.

Remarks

A custom data importer is created by implementing the IInfoPathDataImporter interface. For more information about programmatically importing data into an InfoPath form, see the InfoPath Developer Portal on the Microsoft Office Developer Center.

See also

Reference

IErrorLog interface

IErrorLog members

Microsoft.Office.Interop.InfoPath namespace