パラメータを使用せずに DataBindingHandlerAttribute クラスの新しいインスタンスを初期化します。これは、既定のコンストラクタです。
名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文
'宣言
Public Sub New
'使用
Dim instance As New DataBindingHandlerAttribute
public DataBindingHandlerAttribute ()
public:
DataBindingHandlerAttribute ()
public DataBindingHandlerAttribute ()
public function DataBindingHandlerAttribute ()
適用できません。
使用例
DataBindingHandlerAttribute コンストラクタを使用するコード例を次に示します。
' The following example uses the Default
' DataBindingHandlerAttribute constructor.
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Security.Permissions
Namespace MyTextCustomControl
<DataBindingHandlerAttribute()> _
<AspNetHostingPermission(SecurityAction.Demand, _
Level:=AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class MyTextBox
Inherits TextBox
Protected Overrides Sub Render(output As HtmlTextWriter)
output.Write("This class uses the DataBindingHandlerAttribute class.")
End Sub 'Render
End Class 'MyTextBox
End Namespace 'MyTextCustomControl
// The following example uses the Default
// DataBindingHandlerAttribute constructor.
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Security.Permissions;
namespace MyTextCustomControl
{
[ DataBindingHandlerAttribute() ]
[AspNetHostingPermission(SecurityAction.Demand,
Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class MyTextBox : TextBox
{
protected override void Render(HtmlTextWriter output)
{
output.Write("This class uses the DataBindingHandlerAttribute class.");
}
}
}
// The following example uses the Default
// DataBindingHandlerAttribute constructor.
package MyTextCustomControl;
import System.*;
import System.Web.UI.*;
import System.Web.UI.WebControls.*;
/** @attribute DataBindingHandlerAttribute()
*/
public class MyTextBox extends TextBox
{
protected void Render(HtmlTextWriter output)
{
output.Write("This class uses the DataBindingHandlerAttribute class.");
} //Render
} //MyTextBox
プラットフォーム
Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
DataBindingHandlerAttribute クラス
DataBindingHandlerAttribute メンバ
System.Web.UI 名前空間