UserControl.Response プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > UserControl.Response プロパティの意味・解説 

UserControl.Response プロパティ

現在の Web 要求に対する HttpResponse オブジェクトを取得します。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As UserControl
Dim value As HttpResponse

value = instance.Response
public HttpResponse Response { get; }
public:
property HttpResponse^ Response {
    HttpResponse^ get ();
}
/** @property */
public HttpResponse get_Response ()

プロパティ値
UserControl インスタンスを格納している Page に関連付けられた HttpResponse オブジェクト。

使用例使用例

Response プロパティを使用して、ユーザー コントロールが実行されている Web サーバー コンピュータの名前を書き込む例を次に示します。myControl.Response.Write 構文が、myControl.Server.Machinename 構文で取得する情報を表示するようにユーザー コントロールに指示しています。

myControl.Response.Write("<br><b>The server code is
 running on machine</b> : " + myControl.Server.MachineName)
Dim actualServerPath As String
 = myControl.MapPath(myControl.Request.Path)

 
myControl.Response.Write("<br><b>The server code is running on machine</b>
 : " + myControl.Server.MachineName);
string actualServerPath = myControl.MapPath(myControl.Request.Path);

     
myControl.get_Response().Write("<br><b>The server code is"
 
    + "running on machine</b> : "
    + myControl.get_Server().get_MachineName());

String actualServerPath =
    myControl.MapPath(myControl.get_Request().get_Path());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

UserControl.Response プロパティのお隣キーワード
検索ランキング

   

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



UserControl.Response プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS