| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFieldsEdit
Provides access to members that modify a fields collection.
The IFieldsEdit interface is used when creating a fields collection. You cannot use it to insert or delete a field from a fields collection belonging to an existing table. To add a field to an existing object class, use the IClass::AddField method. To remove a field from an existing object class, use the IClass::DeleteField method.
| Method Summary | |
|---|---|
|  void | addField(IField field)Add a field to the fields collection. | 
|  void | deleteAllFields()Delete all the fields from the fields collection. | 
|  void | deleteField(IField field)Delete a field from the fields collection. | 
|  void | setFieldByRef(int index,
              IField rhs2)The field at the specified position. | 
|  void | setFieldCount(int rhs1)The Number of fields in this field collection. | 
| Methods inherited from interface com.esri.arcgis.geodatabase.IFields | 
|---|
| findField, findFieldByAliasName, getField, getFieldCount | 
| Method Detail | 
|---|
void setFieldCount(int rhs1)
                   throws IOException,
                          AutomationException
rhs1 - The rhs1  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setFieldByRef(int index,
                   IField rhs2)
                   throws IOException,
                          AutomationException
index - The index  (in)rhs2 - A reference to a com.esri.arcgis.geodatabase.IField  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addField(IField field)
              throws IOException,
                     AutomationException
AddField is used when creating a fields collection and cannot be used to insert a field into a fields collection belonging to an existing table. To add a field to an existing object class, use the IClass::AddField method.
The order in which fields are added to the fields collection will dictate their order in the database.
field - A reference to a com.esri.arcgis.geodatabase.IField  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void deleteField(IField field)
                 throws IOException,
                        AutomationException
DeleteField is used when creating a fields collection and cannot be used to delete a field from a fields collection belonging to an existing table. To delete a field from an existing object class, use the IClass::DeleteField method.
field - A reference to a com.esri.arcgis.geodatabase.IField  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void deleteAllFields()
                     throws IOException,
                            AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||