Hey All,
I'm trying to get an instance of an IFeatureServerInfo within my Server Object Interceptor. I want to do this so that I can get the MaxRecorcdCount property on the Feature Service (http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IFeatureServerInfo.htm ).
Does anyone know of a way to use the IServerObjectHelper (or something else...) to create an instance of IFeatureServerInfo?
Alternatively, does anyone know of another way to get the MaxRecordCount from the Feature Service within the SOI?
Cheers,
Jordan
you can use MaxRecordCount of IMapServerInit
Feature service (no hosted) as a special case of a map server's services, map service is a prerequisite for a feature service
Hey Domenico,
Awesome find, thanks for the help!
IMapServerInit2 mapServerInit = (IMapServerInit2)pSOH.ServerObject;
mapServerInit.MaxRecordCount;
Hi Jordan,
After checking the class references there is nowhere I could find FeatureServer to be accessed by ServerObject.
IServerObjectHelper has a class "ServerObject" as its member.
And unfortunately i see that IServerObject have access to all others except FeatureServer.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.