Create TableSortClass in ArcGIS Server 10

515
1
05-17-2011 01:47 PM
MurugeshAnnadurai
New Contributor
I want to create an instance of TableSortClass for arcgis server 10 programming.

In desktop version I used ITableSort ts = new TableSortClass(); I know I cannot use the "new" keyword in server and instead have to use IServerContext's CreateObject method. But this method requires CLSID of the class and I am not sure how to get this. Would appreciate any help or pointers.

Also, is there a place/link/sdk that talks about CLSIDs of all classes. That would be helpful as I am migrating from desktop to server version and having hard-time figuring out the clsid's to create instances.
Tags (2)
0 Kudos
1 Reply
MurugeshAnnadurai
New Contributor
I found the answer from this link. I viewed the class in ObjectBrowser and found out it's namespace and used it with the class name as the CLSID. The code I used is

ITableSort ts = serverContext.CreateObject("esriGeodatabase.TableSort") as ITableSort;
0 Kudos