CurrentPage Property

Gets the current page as a HealthServicePage.

Namespace: Microsoft.Health.Web
Assembly: Microsoft.Health.Web (in Microsoft.Health.Web.dll) Version: (1.15.1003.9505)

public static HealthServicePage CurrentPage { get; }

This property can be used to retrieve an instance of the page from objects that don't have a reference to the page. The property accesses the HttpContext to retrieve the page and casts it to a HealthServicePage. If the page is not a HealthServicePage or the page hasn't been instantiated, null is returned.