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 プロパティのページへのリンク