Share via


ErrorsCollectionClass.Add method

This type is a wrapper for a coclass or coclass member that is required by managed code for COM interoperability. This class is not intended to be used in code.

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

Syntax

'Declaration
Public Overridable Function Add ( _
    varNode As Object, _
    bstrConditionName As String, _
    bstrShortErrorMessage As String, _
    bstrDetailedErrorMessage As String, _
    lErrorCode As Integer, _
    bstrType As String _
) As ErrorObject
'Usage
Dim instance As ErrorsCollectionClass
Dim varNode As Object
Dim bstrConditionName As String
Dim bstrShortErrorMessage As String
Dim bstrDetailedErrorMessage As String
Dim lErrorCode As Integer
Dim bstrType As String
Dim returnValue As ErrorObject

returnValue = instance.Add(varNode, bstrConditionName, _
    bstrShortErrorMessage, bstrDetailedErrorMessage, _
    lErrorCode, bstrType)
public virtual ErrorObject Add(
    Object varNode,
    string bstrConditionName,
    string bstrShortErrorMessage,
    string bstrDetailedErrorMessage,
    int lErrorCode,
    string bstrType
)

Parameters

Return value

Type: Microsoft.Office.Interop.InfoPath.ErrorObject

Implements

Errors.Add(Object, String, String, String, Int32, String)

See also

Reference

ErrorsCollectionClass class

ErrorsCollectionClass members

Microsoft.Office.Interop.InfoPath namespace