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.StringThe name of the property that raised the error.
pExcepInfo
Type: EXCEPINFOA 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.