次の方法で共有


Text プロパティ

例外メッセージ ボックスに表示される最上位レベル メッセージのテキストを取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.MessageBox
アセンブリ:  Microsoft.ExceptionMessageBox (Microsoft.ExceptionMessageBox.dll)

構文

'宣言
Public Property Text As String
    Get
    Set
'使用
Dim instance As ExceptionMessageBox
Dim value As String

value = instance.Text

instance.Text = value
public string Text { get; set; }
public:
property String^ Text {
    String^ get ();
    void set (String^ value);
}
member Text : string with get, set
function get Text () : String
function set Text (value : String)

プロパティ値

型: System. . :: . .String
String の値です。

説明

既定値は空の文字列です。

最上位レベル メッセージと他のユーザー情報を設定する別の方法として、Message などの Exception オブジェクトのインスタンスを作成して、必要なプロパティを設定し、それを ExceptionMessageBox オブジェクトの Message プロパティに割り当てます。