Метод 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
Параметры
- exception
Тип: System. . :: . .Exception
An Exception object.
Возвращаемое значение
Тип: System. . :: . .String
A String that contains the full content of the message.