ExceptionMessageBox.GetMessageText Yöntemi
Döndürür dize özel bir özel durum ileti kutusunda görüntülendiğinde, kullanıcı panoya kopyalayabilirsiniz.
Ad Alanı: Microsoft.SqlServer.MessageBox
Derleme: Microsoft.ExceptionMessageBox (Microsoft.ExceptionMessageBox içinde.dll)
Sözdizimi
'Bildirim
Public Shared Function GetMessageText ( _
exception As Exception _
) As String
'Kullanım
Dim exception As Exception
Dim returnValue As String
returnValue = ExceptionMessageBox.GetMessageText(exception)
public static string GetMessageText(
Exception exception
)
public:
static String^ GetMessageText(
Exception^ exception
)
static member GetMessageText :
exception:Exception -> string
public static function GetMessageText(
exception : Exception
) : String
Parametreler
- exception
Tür: System.Exception
Bir Exception nesne.
Dönüş Değeri
Tür: System.String
String iletinin tam içeriğini içerir.
Açıklamalar
Döndürülen String ileti metni, resim yazısı, ve Yardım bağlantıları tüm ileti bölümleri.Bu, aynı metni Pano'ya yerleştirilir, Kopyala ileti düğmesi tıklatıldığında.