Metoda Show (IntPtr, String, String, String, String, String, String, String)
Ten interfejs API obsługuje infrastrukturę programu i nie jest przeznaczony do użycia bezpośrednio w kodzie.
Wyświetla okno komunikatu wyjątek. Określone tylko w celach informacyjnych. Nieobsługiwane. Przyszła zgodność nie jest gwarantowana.
Przestrzeń nazw: Microsoft.SqlServer.MessageBox
Zestaw: Microsoft.ExceptionMessageBox (w Microsoft.ExceptionMessageBox.dll)
Syntax
'Deklaracja
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
'Użycie
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
Parameters
- hwnd
Typ: System. . :: . .IntPtr
A IntPtr co jest dojście do okna nadrzędnego.
- message
Typ: System. . :: . .String
Ciąg zawierający komunikat wyjątku skojarzonych z tym wystąpienie.
- source
Typ: System. . :: . .String
Ciąg zawierający źródło skojarzonego z tym wystąpienie wyjątku.
- sourceAppName
Typ: System. . :: . .String
Ciąg zawierający nazwę źródło aplikacji.
- sourceAppVersion
Typ: System. . :: . .String
Ciąg zawierający źródło wersja aplikacji.
- sourceModule
Typ: System. . :: . .String
Ciąg zawierający nazwę modułu źródło.
- sourceMessageId
Typ: System. . :: . .String
Identyfikator ciąg zawierający źródło wiadomości.
- sourceLanguage
Typ: System. . :: . .String
A String zawierające nazwę źródło języka.
Wartość zwracana
Typ: System.Windows.Forms. . :: . .DialogResult
DialogResult Przycisku kliknięciu przez użytkownika.
Zobacz także