AspNetManagementUtility.MessageBox(IntPtr, String, String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates, displays, and operates a message box in the ASP.NET snap-in for the Microsoft Management Console (MMC).
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
static int MessageBox(IntPtr hWnd, System::String ^ text, System::String ^ caption, int type);
public static int MessageBox (IntPtr hWnd, string text, string caption, int type);
static member MessageBox : nativeint * string * string * int -> int
Public Shared Function MessageBox (hWnd As IntPtr, text As String, caption As String, type As Integer) As Integer
Parameters
- hWnd
-
IntPtr
nativeint
A handle to the owner of the message box to create. If hWnd is null (Nothing in Visual Basic), the message box has no owner window.
- text
- String
The message for the message box to display.
- caption
- String
The message box title.
- type
- Int32
The contents and behavior of the message box.
Returns
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. |
Remarks
For more information about programming with the AspNetManagementUtility class and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.