In my application it's currently possible to add both ArcGISTiledMapServiceLayer and ArcGISDynamicMapServiceLayer types. The issue I have is that I can't find a good way to query the service to determine which type the user is adding.
It seems I can always add a Tiled layer as a dynamic service, but the opposite (expectedly) throws an exception. What I would like to do is be able to determine and/or query in code whether a given service Uri/Url is hosting tiles or is a "standard" dynamic map service. Is this possible? The exception raised when I add a dynamic as a tiled is "no valid tile info", is there a way to check the service for tile info and then determine which type of map layer object to create based on that? It would be possible to catch the exception and then regenerate the other type, but I'm trying to save that as a last resort option.