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
参数
- exception
类型:System.Exception
An Exception object.
返回值
类型: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.