Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initialisiert eine neue Instanz der DataBindingHandlerAttribute-Klasse ohne Parameter. Dies ist der Standardkonstruktor.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Syntax
'Declaration
Public Sub New
'Usage
Dim instance As New DataBindingHandlerAttribute
public DataBindingHandlerAttribute ()
public:
DataBindingHandlerAttribute ()
public DataBindingHandlerAttribute ()
public function DataBindingHandlerAttribute ()
Beispiel
Im folgenden Codebeispiel wird der DataBindingHandlerAttribute-Konstruktor verwendet.
' 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
Plattformen
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 unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
DataBindingHandlerAttribute-Klasse
DataBindingHandlerAttribute-Member
System.Web.UI-Namespace