SubmitToHostEventArgs.ErrorMessage Property

Gets or sets the error message if the data connection failed while submitting the XML data of the form to the Web page.

Namespace:  Microsoft.Office.InfoPath.Server.Controls
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

Syntax

'Declaration
Public Property ErrorMessage As String
    Get
    Set
'Usage
Dim instance As SubmitToHostEventArgs
Dim value As String

value = instance.ErrorMessage

instance.ErrorMessage = value
public string ErrorMessage { get; set; }

Property Value

Type: System.String

Remarks

For more information about creating a SubmitToHostAdapter data connection in an InfoPath form template, see Hosting the InfoPath 2007 Form Editing Environment in a Custom Web Form.

See Also

Reference

SubmitToHostEventArgs Class

SubmitToHostEventArgs Members

Microsoft.Office.InfoPath.Server.Controls Namespace