UrlCheckerCheckIfUrlBelongsToCompanyAdminPage Method

Checks whether the current URL is a company admin page. This is useful to discern if we are working on such a page during preload.
If , it means we're now in an admin page and need to reload the data. If , it means we're in a different page and don't need to reload the data.

Definition

Namespace: MobileTrack.Web.Components.Extensions
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static bool CheckIfUrlBelongsToCompanyAdminPage(
	this Uri newLocation
)

Parameters

newLocation  Uri
the new location the user goes to.

Return Value

Boolean
True if we're still on the company admin page

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Uri. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also