MessageBoxData Class


Message Box Data Class

An object that represents a simple message box that prompts the user for some action.
Inheritance Hierarchy

Namespace: Autodesk.Revit.UI.Events
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class MessageBoxData : DialogBoxData

The MessageBoxData type exposes the following members.

Properties
Name Description
Public property DialogType An integer that describes the standard windows type of the dialog box.
Public property HelpId An ID that represents the dialog that has been displayed.
(Inherited from DialogBoxData )
Public property Code example IsReadOnly Identifies if the object is read-only or modifiable.
(Inherited from APIObject )
Public property Message The message that has been displayed in the dialog box.
Top
Methods
Name Description
Public method Dispose Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject )
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method OverrideResult Call this method to cause the Autodesk Revit dialog to be dismissed with the specified return value.
(Inherited from DialogBoxData )
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
When the application receives this object, a simple message box is displayed in Revit that requires user interaction. The OverrideResult function can be used to cause the dialog to be dismissed and return a desired result code.
See Also