I have layer (feature class) in ArcGIS. The data is on Oracle 11g.
I try to update a field in a row but when I do feature.store I get an error
"Class is not licensed for use (Exception from HRESULT: 0x80040112)"
The code I use:
<SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">private</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">void</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">UpdateFeatures</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">IFeatureClass</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureClass</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">IFeatureWorkspace</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureWorkspace</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">List</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"><</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FeatureValue</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">></SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureValues</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">IFeatureCursor</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureSearchCursor </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">null</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">IWorkspaceEdit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> workspaceEdit </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">null</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">try</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> workspaceEdit </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">IWorkspaceEdit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">featureWorkspace</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> workspaceEdit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">StartEditing</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">false</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">// Start an edit operation and create a cursor.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> workspaceEdit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">StartEditOperation</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">//IQueryFilter queryFilter = new QueryFilter();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">//queryFilter.WhereClause = "Code = '" + featureValues<I>.FieldName + "'";</I></SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">//queryFilter.SubFields = "COMMENTS";</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureSearchCursor </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureClass</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Search</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">null</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">false</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">int</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> fieldCodeIndex </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureClass</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FindField</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">"CODE"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">int</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> fieldIndex </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureClass</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FindField</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">"MODEL"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">bool</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FieldEditable</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureWorkspace</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">OpenTable</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">"Switch"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">).</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Fields</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">get_Field</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">fieldIndex</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">).</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Editable</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">// Iterate through the features, updating the Type values.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">IFeature</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> feature </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">null</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">while</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">((</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">feature </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureSearchCursor</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">NextFeature</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">())</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">!=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">null</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">object</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> obj </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> feature</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">get_Value</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">fieldCodeIndex</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(!(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">obj </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">is</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">DBNull</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">))</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FeatureValue</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureValue </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureValues</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Where</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">x </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=></SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> x</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FieldName</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">==</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> obj</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">ToString</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">()).</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FirstOrDefault</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"><</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FeatureValue</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">>();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">featureValue </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">!=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">null</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">int</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> val </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> featureValue</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">FieldValue</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">object</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> obj1 </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">"123"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> feature</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">set_Value</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">fieldIndex</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">,</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">obj1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> feature</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Store</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">break</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">//Console.WriteLine("The new type: {0}", feature.get_Value(fieldIndex));</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">catch</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">COMException</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> ex</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">// Handle any errors that might occur on NextFeature().</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> richTextBox1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">AppendText</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">ex</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Message</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">catch</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Exception</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> ex</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">//handle general Errors</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> richTextBox1</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">AppendText</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">ex</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Message</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">finally</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> workspaceEdit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">StopEditOperation</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">();</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">// Stop the edit session.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> workspaceEdit</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">StopEditing</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">true</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">// Stop the edit operation.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #858c93; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">// Since the edit operation is ending, release the cursor.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">Marshal</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">.</SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">ReleaseComObject</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">featureSearchCursor</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: inherit; margin: 0px;">}</SPAN>