共用方式為


ExceptionMessageBox.Show 方法 (IntPtr, String, String, String, String, String, String, String)

Displays the exception message box. 僅供參考之用。不支援。我們無法保證未來的相容性。

命名空間:  Microsoft.SqlServer.MessageBox
組件:  Microsoft.ExceptionMessageBox (在 Microsoft.ExceptionMessageBox.dll 中)

語法

'宣告
Public Function Show ( _
    hwnd As IntPtr, _
    message As String, _
    source As String, _
    sourceAppName As String, _
    sourceAppVersion As String, _
    sourceModule As String, _
    sourceMessageId As String, _
    sourceLanguage As String _
) As DialogResult
'用途
Dim instance As ExceptionMessageBox 
Dim hwnd As IntPtr 
Dim message As String 
Dim source As String 
Dim sourceAppName As String 
Dim sourceAppVersion As String 
Dim sourceModule As String 
Dim sourceMessageId As String 
Dim sourceLanguage As String 
Dim returnValue As DialogResult 

returnValue = instance.Show(hwnd, message, _
    source, sourceAppName, sourceAppVersion, _
    sourceModule, sourceMessageId, sourceLanguage)
public DialogResult Show(
    IntPtr hwnd,
    string message,
    string source,
    string sourceAppName,
    string sourceAppVersion,
    string sourceModule,
    string sourceMessageId,
    string sourceLanguage
)
public:
DialogResult Show(
    IntPtr hwnd, 
    String^ message, 
    String^ source, 
    String^ sourceAppName, 
    String^ sourceAppVersion, 
    String^ sourceModule, 
    String^ sourceMessageId, 
    String^ sourceLanguage
)
member Show : 
        hwnd:IntPtr * 
        message:string * 
        source:string * 
        sourceAppName:string * 
        sourceAppVersion:string * 
        sourceModule:string * 
        sourceMessageId:string * 
        sourceLanguage:string -> DialogResult
public function Show(
    hwnd : IntPtr, 
    message : String, 
    source : String, 
    sourceAppName : String, 
    sourceAppVersion : String, 
    sourceModule : String, 
    sourceMessageId : String, 
    sourceLanguage : String
) : DialogResult

參數

  • message
    型別:System.String
    A string containing the message for the exception associated with this instance.
  • source
    型別:System.String
    A string containing the source for the exception associated with this instance.
  • sourceAppName
    型別:System.String
    A string containing the name of the source application.
  • sourceAppVersion
    型別:System.String
    A string containing the source application version.
  • sourceModule
    型別:System.String
    A string containing the source module name.
  • sourceMessageId
    型別:System.String
    A string containing the source message ID.
  • sourceLanguage
    型別:System.String
    A string containing the source language.

傳回值

型別:System.Windows.Forms.DialogResult
The DialogResult of the button clicked by the user.

請參閱

參考

ExceptionMessageBox 類別

Show 多載

Microsoft.SqlServer.MessageBox 命名空間