This document is archived and information here might be outdated.  Recommended version.


IFieldsEdit.DeleteField Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IFieldsEdit.DeleteField Method

Delete a field from the fields collection.

[Visual Basic .NET]
Public Sub DeleteField ( _
    ByVal Field As IField _
)
[C#]
public void DeleteField (
    IField Field
);
[C++]
HRESULT DeleteField(
  IField* Field
);
[C++]

Parameters Field [in]
Field is a parameter of type IField

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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.

See Also

IFieldsEdit Interface