Partager via


XmlFormCancelEventArgs.Message Property

Gets or sets the short message that is displayed when the event is cancelled.

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

Syntax

'Declaration
Public MustOverride Property Message As String
    Get
    Set
'Usage
Dim instance As XmlFormCancelEventArgs
Dim value As String

value = instance.Message

instance.Message = value
public abstract string Message { get; set; }

Property Value

Type: System.String
The short error message text.

Remarks

The value specified for the Message property is displayed at the top of the error message dialog box when the event is cancelled.

For information about which events can utilize the Message property, see XmlFormCancelEventArgs.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

See Also

Reference

XmlFormCancelEventArgs Class

XmlFormCancelEventArgs Members

Microsoft.Office.InfoPath Namespace