ExceptionMessageBox.GetMessageText 메서드

Returns the string that a user can copy to the clipboard when the exception is displayed in an exception message box.

네임스페이스:  Microsoft.SqlServer.MessageBox
어셈블리:  Microsoft.ExceptionMessageBox(Microsoft.ExceptionMessageBox.dll)

구문

‘선언
Public Shared Function GetMessageText ( _
    exception As Exception _
) As String
‘사용 방법
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

매개 변수

반환 값

유형: System.String
String that contains the full content of the message.

주의

The returned String includes the message text, the caption, and help links from all message parts. This is the same text that is placed on the clipboard when the Copy Message button is clicked.

참고 항목

참조

ExceptionMessageBox 클래스

Microsoft.SqlServer.MessageBox 네임스페이스