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+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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