Autodesk Vault ProfessionalVault API

ShowMessage(String,String,ButtonConfiguration) Method

Autodesk.DataManagement.Client.Framework.FormsLibrary

Displays a message box with the specified text, caption, and button configuration (ie. Yes/No, Ok/Cancel, etc...)

Syntax

public static System.Windows.Forms.DialogResult ShowMessage(
   System.string message,
   System.string title,
   ButtonConfiguration btnType
)
Public Overloads Shared Function ShowMessage( _
   ByVal message As System.String, _
   ByVal title As System.String, _
   ByVal btnType As ButtonConfiguration _
) As System.Windows.Forms.DialogResult

Parameters

NameDescription
messageThe text to display in the dialog box.
titleThe caption of the dialog box.
btnTypeThe button selection that will be made available in the dialog box.

Return Value

The windows DialogResult which describes the button that was selected. The following chart shows the possible return codes for each button. Button Return Code "Abort", "Skip All" DialogResult.Abort "Cancel" DialogResult.Cancel "No" DialogResult.No "OK" DialogResult.OK "Retry" DialogResult.Retry "Skip" DialogResult.Ignore "Yes" DialogResult.Yes

See Also