[This is preliminary documentation and is subject to change.]

Displays a message box in front of the specified window. The message box displays a message and returns a result.

Namespace: Tools.WindowsT.IndependentT
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static MessageBoxResult Show(
	Window owner,
	string messageBoxText
)
Visual Basic
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _
Public Shared Function Show ( _
	owner As Window, _
	messageBoxText As String _
) As MessageBoxResult
Visual C++
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)]
public:
static MessageBoxResult Show(
	Window^ owner, 
	String^ messageBoxText
)
F#
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>]
static member Show : 
        owner:Window * 
        messageBoxText:string -> MessageBoxResult 
JScript
public static function Show(
	owner : Window, 
	messageBoxText : String
) : MessageBoxResult

Parameters

owner
Type: System.Windows..::..Window
A Window that represents the owner window of the message box.
messageBoxText
Type: System..::..String
A String that specifies the text to display.

Return Value

A MessageBoxResult value that specifies which message box button is clicked by the user.

Remarks

Exceptions

ExceptionCondition
System.Reflection..::..TargetInvocationExceptionThere was an error working working with customized static properties such as DefaultImplementation or message box implementation failed.

See Also