Hyperlink.OnClick Method

Definition

Handles the Click routed event.

C#
protected virtual void OnClick();

Remarks

This method navigates to the uniform resource identifier (URI) specified by the NavigateUri property, and marks the URI as visited.

Important

Depending on the host computer's security configuration, certain forms of navigation (for example, navigating to a Universal Naming Convention (UNC) path) are not allowed in the Internet zone. In such cases, this method will demand full trust. For more information, see Code Access Security.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10