MessageBoxHelpers.ShowMessage Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
ShowMessage(IWin32Window, String, String)
public:
static System::Windows::Forms::DialogResult ShowMessage(System::Windows::Forms::IWin32Window ^ owner, System::String ^ message, System::String ^ title);
public static System.Windows.Forms.DialogResult ShowMessage (System.Windows.Forms.IWin32Window owner, string message, string title);
static member ShowMessage : System.Windows.Forms.IWin32Window * string * string -> System.Windows.Forms.DialogResult
Public Shared Function ShowMessage (owner As IWin32Window, message As String, title As String) As DialogResult
Параметры
- owner
- IWin32Window
- message
- String
- title
- String
Возвращаемое значение
Применяется к
ShowMessage(IWin32Window, String, MessageBoxButtons, MessageBoxIcon)
public:
static System::Windows::Forms::DialogResult ShowMessage(System::Windows::Forms::IWin32Window ^ owner, System::String ^ message, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon);
public static System.Windows.Forms.DialogResult ShowMessage (System.Windows.Forms.IWin32Window owner, string message, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon);
static member ShowMessage : System.Windows.Forms.IWin32Window * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon -> System.Windows.Forms.DialogResult
Public Shared Function ShowMessage (owner As IWin32Window, message As String, buttons As MessageBoxButtons, icon As MessageBoxIcon) As DialogResult
Параметры
- owner
- IWin32Window
- message
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
Возвращаемое значение
Применяется к
ShowMessage(IServiceProvider, IWin32Window, String, MessageBoxButtons, MessageBoxIcon)
public:
static System::Windows::Forms::DialogResult ShowMessage(IServiceProvider ^ sp, System::Windows::Forms::IWin32Window ^ owner, System::String ^ message, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon);
public static System.Windows.Forms.DialogResult ShowMessage (IServiceProvider sp, System.Windows.Forms.IWin32Window owner, string message, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon);
static member ShowMessage : IServiceProvider * System.Windows.Forms.IWin32Window * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon -> System.Windows.Forms.DialogResult
Public Shared Function ShowMessage (sp As IServiceProvider, owner As IWin32Window, message As String, buttons As MessageBoxButtons, icon As MessageBoxIcon) As DialogResult
Параметры
- owner
- IWin32Window
- message
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
Возвращаемое значение
Применяется к
ShowMessage(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon)
public:
static System::Windows::Forms::DialogResult ShowMessage(System::Windows::Forms::IWin32Window ^ owner, System::String ^ message, System::String ^ title, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon);
public static System.Windows.Forms.DialogResult ShowMessage (System.Windows.Forms.IWin32Window owner, string message, string title, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon);
static member ShowMessage : System.Windows.Forms.IWin32Window * string * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon -> System.Windows.Forms.DialogResult
Public Shared Function ShowMessage (owner As IWin32Window, message As String, title As String, buttons As MessageBoxButtons, icon As MessageBoxIcon) As DialogResult
Параметры
- owner
- IWin32Window
- message
- String
- title
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon