GetMessageText メソッド
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。代わりに GetMessageText を使用してください。
名前空間: 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
Exception オブジェクトです。
戻り値
型: System. . :: . .String
メッセージの完全な内容が含まれる String です。