Export (0) Print
Expand All

AspNetManagementUtility.MessageBox Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Creates, displays, and operates a message box in the ASP.NET snap-in for the Microsoft Management Console (MMC).

Namespace:  Microsoft.Aspnet.Snapin
Assembly:  AspNetMMCExt (in AspNetMMCExt.dll)

public static int MessageBox(
	IntPtr hWnd,
	string text,
	string caption,
	int type
)

Parameters

hWnd
Type: System.IntPtr

A handle to the owner of the message box to create. If hWnd is null, the message box has no owner window.

text
Type: System.String

The message for the message box to display.

caption
Type: System.String

The message box title.

type
Type: System.Int32

The contents and behavior of the message box.

Return Value

Type: System.Int32
IDCANCEL, if the message box has a Cancel button and either ESC is pressed or Cancel is clicked. If the message has no Cancel button, pressing ESC has no effect.
If the function fails, 0.
If the function succeeds, the return value is one of the following menu-item values:

Return value

Description

IDABORT

Abort was clicked.

IDCANCEL

Cancel was clicked.

IDCONTINUE

Continue was clicked.

IDIGNORE

Ignore was clicked.

IDNO

No was clicked.

IDOK

OK was clicked.

IDRETRY

Retry was clicked.

IDTRYAGAIN

Try Again was clicked.

IDYES

Yes was clicked.

For more information about programming with the AspNetManagementUtility class and the Microsoft Management Console (MMC), see the "MMC Programmer's Guide" in the MSDN Library.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft