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.
Namespace: MobileTrack.Web.Components.ExtensionsAssembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static bool CheckIfUrlBelongsToCompanyAdminPage(
this Uri newLocation
)
- newLocation Uri
- the new location the user goes to.
BooleanTrue if we're still on the company admin pageIn 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).