AnsweredAssumed Answered

How to check if a layer requires a token to initialize or not

Question asked by humzarr on Nov 25, 2013
Latest reply on Nov 26, 2013 by MBranscomb-esristaff

How can I check programatically for a Layer(Tiled, Dynamic or Feature) whether a token is required to initialize it or not. I want to know this before I initialize it.

I donot want to initialize it first and then view the error to know that I required a token for this service.

I couldnot find any property in ArcGISTiledMapServiceLayer or ArcGISDynamicMapServiceLayer which can tell me that this service is secure.