GetMessageText Method
Collapse the table of content
Expand the table of content

ExceptionMessageBox.GetMessageText Method (Exception)

 

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

Namespace:   Microsoft.SqlServer.MessageBox
Assembly:  Microsoft.ExceptionMessageBox (in Microsoft.ExceptionMessageBox.dll)

public static string GetMessageText(
	Exception exception
)

Parameters

exception
Type: System.Exception

An Exception object.

Return Value

Type: 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.

Return to top
Show:
© 2016 Microsoft