ResponseSubmittedEventArgsとは? わかりやすく解説

ResponseSubmittedEventArgs クラス

ResponseSubmitted イベントデータ提供します

名前空間: Microsoft.WindowsCE.Forms
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)
構文構文

Public Class ResponseSubmittedEventArgs
    Inherits EventArgs
Dim instance As ResponseSubmittedEventArgs
public class ResponseSubmittedEventArgs : EventArgs
public ref class ResponseSubmittedEventArgs
 : public EventArgs
public class ResponseSubmittedEventArgs extends
 EventArgs
public class ResponseSubmittedEventArgs extends
 EventArgs
解説解説
使用例使用例

応答文字列解析し通知バルーンユーザー選択した要素確認するコード例次に示します。このコード例は、Notification クラストピック取り上げているコード例一部分です。

' When a ResponseSubmitted event occurs, this event handler
' parses the response to determine values in the HTML form.
Private Sub OnResponseSubmitted(obj As
 Object, _ 
   resevent As ResponseSubmittedEventArgs) Handles
 Notification1.ResponseSubmitted
   
   ' Use a StringBuilder to create a log of the response.
   Dim LogResponse As New
 StringBuilder()
   
   
   ' If the response contains the name specified for the action value
   ' of the HTML form, in this case "notify," get the value
 of the
   ' selected option from the SELECT list. An example of the
   ' response string would be notify?lstbx=0.
   If resevent.Response.Substring(0, 6) = "notify"
 Then
      Dim choice As Integer
 = Convert.ToInt32(resevent.Response.Substring(13, 1))
      Select Case choice
         Case 0
            LogResponse.Equals("submit")
         Case 1
            LogResponse.Equals("opt 1")
         Case 2
            LogResponse.Equals("opt 2")
         Case 3
            LogResponse.Equals("opt 3")
         Case 4
            LogResponse.Equals("opt 4")
      End Select
      ' If the checkbox in the form is checked, the response
      ' string could be as follows: notify?lstbx=0chkbx=on
      ' You can determine whether the check box is selected
      ' by checking whether the response ends with "on".
      If resevent.Response.EndsWith("on")
 Then
         LogResponse.Equals("checkbox")
      End If
   
   ' If the user clicked the settings link,
   ' log the response. This example could display
   ' a dialog box by activating another form.
   ElseIf resevent.Response = "settings"
 Then
      ' Display a settings dialog by activating
      ' a form named 'Settings':
      ' Settings.Activate
      LogResponse.Equals("Postponed by clicking link")
      
      ' The user needs to respond to the notification
      ' after checking the settings, so set the
      ' InitialDuration and Visible properties so
      ' that the icon appears in the title bar.
      Notification1.InitialDuration = 0
      Notification1.Visible = True
   End If
   
   ' Display the response on the status bar.
   StatusBar1.Text = LogResponse.ToString() + " HTML: "
 + resevent.Response.ToString()
End Sub
// When a ResponseSubmitted event occurs, this event handler
// parses the response to determine values in the HTML form.
private void OnResponseSubmitted(object obj,
 ResponseSubmittedEventArgs resevent)
{

    // Use a StringBuilder to create a log of the response.
    StringBuilder LogResponse = new StringBuilder();


    // If the response contains the name specified for the action value
    // of the HTML form, in this case "notify," get the value
 of the
    // selected option from the SELECT list. An example of the
    // response string would be notify?lstbx=0.

    if (resevent.Response.Substring(0, 6) == "notify")
    {
        int choice = Convert.ToInt32(resevent.Response.Substring(13,
 1));
        switch (choice)
        {
            case 0:
                LogResponse.Equals("submit");
                break;
            case 1:
                LogResponse.Equals("opt 1");
                break;
            case 2:
                LogResponse.Equals("opt 2");
                break;
            case 3:
                LogResponse.Equals("opt 3");
                break;
            case 4:
                LogResponse.Equals("opt 4");
                break;
        }
        // If the checkbox in the form is checked, the response
        // string could be as follows: notify?lstbx=0chkbx=on
        // You can determine whether the check box is selected
        // by checking whether the response ends with "on".
        if (resevent.Response.EndsWith("on"))
            LogResponse.Equals("checkbox");
    }

    // If the user clicked the settings link,
    // log the response. This example could display
    // a dialog box by activating another form.
    else if (resevent.Response == "settings")
    {
        // Display a settings dialog by activating
        // a form named 'Settings':
        // Settings.Activate
        LogResponse.Equals("Postponed by clicking link");

        // The user needs to respond to the notification
        // after checking the settings, so set the
        // InitialDuration and Visible properties so
        // that the icon appears in the title bar.
        notification1.InitialDuration = 0;
        notification1.Visible = true;
    }

    // Display the response on the status bar.
    statusBar1.Text = LogResponse.ToString() + " HTML: " + resevent.Response.ToString();
}
継承階層継承階層
System.Object
   System.EventArgs
    Microsoft.WindowsCE.Forms.ResponseSubmittedEventArgs
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ResponseSubmittedEventArgs メンバ
Microsoft.WindowsCE.Forms 名前空間
その他の技術情報
方法 : 通知送信する

ResponseSubmittedEventArgs コンストラクタ

ResponseSubmittedEventArgs クラス新しインスタンス初期化します。

名前空間: Microsoft.WindowsCE.Forms
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)
構文構文

Dim response As String

Dim instance As New ResponseSubmittedEventArgs(response)
public ResponseSubmittedEventArgs (
    string response
)
public:
ResponseSubmittedEventArgs (
    String^ response
)
public ResponseSubmittedEventArgs (
    String response
)
public function ResponseSubmittedEventArgs
 (
    response : String
)

パラメータ

response

メッセージ バルーンボタンまたはリンクの識別子や、メッセージ バルーンHTML フォームからの応答格納されます。

解説解説
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ResponseSubmittedEventArgs クラス
ResponseSubmittedEventArgs メンバ
Microsoft.WindowsCE.Forms 名前空間

ResponseSubmittedEventArgs プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

ResponseSubmittedEventArgs クラス
Microsoft.WindowsCE.Forms 名前空間

その他の技術情報

方法 : 通知送信する

ResponseSubmittedEventArgs メソッド


ResponseSubmittedEventArgs メンバ

ResponseSubmitted イベントデータ提供します

ResponseSubmittedEventArgs データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ResponseSubmittedEventArgs ResponseSubmittedEventArgs クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ResponseSubmittedEventArgs クラス
Microsoft.WindowsCE.Forms 名前空間

その他の技術情報

方法 : 通知送信する



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ResponseSubmittedEventArgs」の関連用語

ResponseSubmittedEventArgsのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ResponseSubmittedEventArgsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS