IFieldsEdit Interface

Provides access to members that modify a fields collection.

Description

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.

Members

Name Description
Method AddField Add a field to the fields collection.
Method DeleteAllFields Delete all the fields from the fields collection.
Method DeleteField Delete a field from the fields collection.
Write-only property Field The field at the specified position.
Read-only property Field The field at the specified index in the fields collection.
Write-only property FieldCount The Number of fields in this field collection.
Read-only property FieldCount The number of fields in the fields collection.
Method FindField Finds the index of the named field in the fields collection.
Method FindFieldByAliasName Finds the index of the field with the alias name in the fields collection.

IFieldsEdit.AddField Method

Add a field to the fields collection.

Public Sub AddField ( _
    ByVal Field As IField _
)
public void AddField (
    IField Field
);

Remarks

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.

IFieldsEdit.DeleteAllFields Method

Delete all the fields from the fields collection.

Public Sub DeleteAllFields ( _
)
public void DeleteAllFields (
);

IFieldsEdit.DeleteField Method

Delete a field from the fields collection.

Public Sub DeleteField ( _
    ByVal Field As IField _
)
public void DeleteField (
    IField Field
);

Remarks

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.

IFieldsEdit.Field Property

The field at the specified position.

Public Sub set_Field ( _
    ByVal Index As Integer, _
    ByVal A_2 As IField _
)
public void set_Field (
    int Index,
    IField A_2
);

IFieldsEdit.Field Property

The field at the specified position.

Public Sub set_Field ( _
    ByVal Index As Integer, _
    ByVal A_2 As IField _
)
public void set_Field (
    int Index,
    IField A_2
);

IFieldsEdit.FieldCount Property

The Number of fields in this field collection.

Public WriteOnly Property FieldCount_2
public void FieldCount_2 {set;}

IFieldsEdit.FieldCount Property

The Number of fields in this field collection.

Public WriteOnly Property FieldCount_2
public void FieldCount_2 {set;}

Inherited Interfaces

Interfaces Description
IFields Provides access to members that return information about the fields.

Classes that implement IFieldsEdit

Classes Description
Fields Esri Fields object.
When using C# (and other .NET languages) you must append an "_2" to the property you want to set on this interface. For example fieldsEdit.FieldCount_2 = 3.
When using VB.NET (and other .NET languages) you must append an "_2" to the property you want to set on this interface. For example pFieldsEdit.FieldCount_2 = 3.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.