ExceptionMessageBox.GetMessageText(Exception) 方法

定义

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

public:
 static System::String ^ GetMessageText(Exception ^ exception);
public static string GetMessageText (Exception exception);
static member GetMessageText : Exception -> string
Public Shared Function GetMessageText (exception As Exception) As String

参数

exception
Exception

一个 Exception 对象。

返回

一个包含消息完整内容的 String

适用于