Dela via


ExceptionMessageBox.GetMessageText Method

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use GetMessageText instead.

Namespace:  Microsoft.NetEnterpriseServers
Assembly:  Microsoft.NetEnterpriseServers.ExceptionMessageBox (in Microsoft.NetEnterpriseServers.ExceptionMessageBox.dll)

Syntax

'Declaration
Public Shared Function GetMessageText ( _
    exception As Exception _
) As String
'Usage
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

Parameters

Return Value

Type: System.String
A String that contains the full content of the message.