ExceptionMessageBox.GetMessageText(Exception) 方法

定義

這項功能將在未來的 SQL Server Microsoft 版本中移除。 請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。 請改用 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 物件。

傳回

包含訊息完整內容的A String

適用於