SqlWorkbenchHierarchy.StaticShowMessage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StaticShowMessage(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, IWin32Window)
public:
static System::Windows::Forms::DialogResult StaticShowMessage(System::String ^ message, System::String ^ caption, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon, System::Windows::Forms::MessageBoxDefaultButton defButton, System::Windows::Forms::IWin32Window ^ owner);
public static System.Windows.Forms.DialogResult StaticShowMessage(string message, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.MessageBoxDefaultButton defButton, System.Windows.Forms.IWin32Window owner);
static member StaticShowMessage : string * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon * System.Windows.Forms.MessageBoxDefaultButton * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
Public Shared Function StaticShowMessage (message As String, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon, defButton As MessageBoxDefaultButton, owner As IWin32Window) As DialogResult
參數
- message
- String
- caption
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
- defButton
- MessageBoxDefaultButton
- owner
- IWin32Window
傳回
適用於
StaticShowMessage(Exception, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, IWin32Window)
public:
static System::Windows::Forms::DialogResult StaticShowMessage(Exception ^ ex, System::String ^ caption, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon, System::Windows::Forms::MessageBoxDefaultButton defButton, System::Windows::Forms::IWin32Window ^ owner);
public static System.Windows.Forms.DialogResult StaticShowMessage(Exception ex, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.MessageBoxDefaultButton defButton, System.Windows.Forms.IWin32Window owner);
static member StaticShowMessage : Exception * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon * System.Windows.Forms.MessageBoxDefaultButton * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
Public Shared Function StaticShowMessage (ex As Exception, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon, defButton As MessageBoxDefaultButton, owner As IWin32Window) As DialogResult
參數
- ex
- Exception
- caption
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
- defButton
- MessageBoxDefaultButton
- owner
- IWin32Window
傳回
適用於
StaticShowMessage(String, String, MessageBoxButtons, MessageBoxIcon, IWin32Window)
public:
static System::Windows::Forms::DialogResult StaticShowMessage(System::String ^ message, System::String ^ caption, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon, System::Windows::Forms::IWin32Window ^ owner);
public static System.Windows.Forms.DialogResult StaticShowMessage(string message, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.IWin32Window owner);
static member StaticShowMessage : string * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
Public Shared Function StaticShowMessage (message As String, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon, owner As IWin32Window) As DialogResult
參數
- message
- String
- caption
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
- owner
- IWin32Window
傳回
適用於
StaticShowMessage(String, String, MessageBoxButtons, MessageBoxIcon)
public:
static System::Windows::Forms::DialogResult StaticShowMessage(System::String ^ message, System::String ^ caption, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon);
public static System.Windows.Forms.DialogResult StaticShowMessage(string message, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon);
static member StaticShowMessage : string * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon -> System.Windows.Forms.DialogResult
Public Shared Function StaticShowMessage (message As String, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon) As DialogResult
參數
- message
- String
- caption
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
傳回
適用於
StaticShowMessage(Exception, String, MessageBoxButtons, MessageBoxIcon)
public:
static System::Windows::Forms::DialogResult StaticShowMessage(Exception ^ ex, System::String ^ caption, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon);
public static System.Windows.Forms.DialogResult StaticShowMessage(Exception ex, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon);
static member StaticShowMessage : Exception * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon -> System.Windows.Forms.DialogResult
Public Shared Function StaticShowMessage (ex As Exception, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon) As DialogResult
參數
- ex
- Exception
- caption
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
傳回
適用於
StaticShowMessage(Exception, String, MessageBoxButtons, MessageBoxIcon, IWin32Window)
public:
static System::Windows::Forms::DialogResult StaticShowMessage(Exception ^ ex, System::String ^ caption, System::Windows::Forms::MessageBoxButtons buttons, System::Windows::Forms::MessageBoxIcon icon, System::Windows::Forms::IWin32Window ^ owner);
public static System.Windows.Forms.DialogResult StaticShowMessage(Exception ex, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.IWin32Window owner);
static member StaticShowMessage : Exception * string * System.Windows.Forms.MessageBoxButtons * System.Windows.Forms.MessageBoxIcon * System.Windows.Forms.IWin32Window -> System.Windows.Forms.DialogResult
Public Shared Function StaticShowMessage (ex As Exception, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon, owner As IWin32Window) As DialogResult
參數
- ex
- Exception
- caption
- String
- buttons
- MessageBoxButtons
- icon
- MessageBoxIcon
- owner
- IWin32Window