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

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

Control.Context プロパティ

現在の Web 要求対すサーバー コントロール関連付けられている HttpContext オブジェクト取得します

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

Dim value As HttpContext

value = Me.Context
protected public:
virtual property HttpContext^ Context {
    HttpContext^ get ();
}
/** @property */
protected HttpContext get_Context ()

プロパティ
現在の要求関連付けられている、指定されHttpContext オブジェクト

解説解説
使用例使用例
<System.Security.Permissions.PermissionSetAttribute( _ 
    System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")>
 _ 
Protected Overrides Function
 OnBubbleEvent(sender As Object, e As
 EventArgs) As Boolean

    ' Use the Context property to write text to the TraceContext object
    ' associated with the current request.         
    Context.Trace.Write("The ParentControl's OnBubbleEvent method
 is called.")
    Context.Trace.Write("The Source of event is: "
 + sender.ToString())
   
    Return True
End Function 'OnBubbleEvent
protected override bool OnBubbleEvent(object
 sender, EventArgs e)
{

   // Use the Context property to write text to the TraceContext object
   // associated with the current request.
   Context.Trace.Write("The ParentControl's OnBubbleEvent method is called.");
   Context.Trace.Write("The Source of event is: " + sender.ToString());

   return true;
}
protected boolean OnBubbleEvent(Object sender, EventArgs e) 
{
    // Use the Context property to write text to the TraceContext object
    // associated with the current request.
    get_Context().get_Trace().Write("The ParentControl's OnBubbleEvent"
        + " method is called.");
    get_Context().get_Trace().Write(("The Source of event is: " 
        + sender.ToString()));
 
    return true ;
} //OnBubbleEvent      
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Control クラス
Control メンバ
System.Web.UI 名前空間
HttpContext
HttpApplication
HttpServerUtility
HttpRequest
HttpResponse


このページでは「.NET Framework クラス ライブラリ リファレンス」からControl.Context プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からControl.Context プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からControl.Context プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「Control.Context プロパティ」の関連用語

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

   

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



Control.Context プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS