Control.Context プロパティ
アセンブリ: System.Web (system.web.dll 内)
構文
解説このプロパティは、現在の Web 要求の HttpContext オブジェクトにアクセスできるようにします。このオブジェクトには、Application、Session、Request、Response、および現在の HTTP 要求に関する情報を格納しているその他のオブジェクトにアクセスするプロパティが用意されています。さらに、構成情報を取得し、要求のエラーを設定または削除できるようにするためのメソッドも用意されています。
使用例<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
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からControl.Context プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からControl.Context プロパティ
を検索
- Control.Context プロパティのページへのリンク