This documentation is archived and is not being maintained.
HyperLink Constructor
.NET Framework 1.1
Initializes a new instance of the HyperLink class.
[Visual Basic] Public Sub New() [C#] public HyperLink(); [C++] public: HyperLink(); [JScript] public function HyperLink();
Remarks
Use this constructor to create and initialize a new instance of the HyperLink control.
Example
The following example demonstrates how to create and initialize a new instance of the HyperLink class.
[Visual Basic] Sub Page_Load(sender As Object, e As EventArgs) Dim link As New HyperLink() End Sub 'Page_Load [C#] void Page_Load(Object sender, EventArgs e) { HyperLink link = new HyperLink(); } [C++] void Page_Load(Object* /*sender*/, EventArgs* /*e*/) { HyperLink* link = new HyperLink(); } [JScript] function Page_Load(sender : Object, e : EventArgs){ var link : HyperLink = new HyperLink() } //Page_Load
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HyperLink Class | HyperLink Members | System.Web.UI.WebControls Namespace
Show: