AnsweredAssumed Answered

Differentiate feature service URL from feature service layer URL

Question asked by jeffboyton on Apr 3, 2020

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)?