Get all the features from the Feature class into a collection

404
1
01-25-2013 03:38 AM
pavan_kumarmuttigi
New Contributor
Hi,

Can any one help me in getting all the features from the feature class into a collection without querying over the feature class?


Thanks in advance
0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor
What sort of collection are you talking about? Is it a collection, arraylist, dictionary or hashtable? Either way you still need to build a cursor over the table and cycle through it copying the data into your collection object. There are many examples on the forum and in help that can give you coded samples. Search for IFeatureCursor.

Duncan
0 Kudos