AspNetManagementUtility::MessageBox Method
Creates, displays, and operates a message box in the ASP.NET snap-in for the Microsoft Management Console (MMC).
Assembly: AspNetMMCExt (in AspNetMMCExt.dll)
Parameters
- hWnd
- Type: System::IntPtr
A handle to the owner of the message box to create. If hWnd is nullptr, 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::Int32IDCANCEL, 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.