GetMessageText 方法

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。 Use GetMessageText instead.

命名空间:  Microsoft.NetEnterpriseServers
程序集:  Microsoft.NetEnterpriseServers.ExceptionMessageBox(在 Microsoft.NetEnterpriseServers.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
A String that contains the full content of the message.