Differentiate feature service URL from feature service layer URL

04-03-2020 09:01 AM
New Contributor II

In the Pro SDK is there a way to differentiate a user-inputted URL as to whether it is a feature service or a layer of a feature service.

I can construct a Geodatabase from either:

Geodatabase geodatabase = new Geodatabase(connectionProperties);

I ultimately want to treat this service like any other geodatabase and get a list of tables to access.  

Would it be reliable to use the path of the URL itself (if ends in '\<number>' then it must be a layer)?

0 Kudos
0 Replies