IClass.DeleteField Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IClass.DeleteField Method

Deletes a field from this object class.

[Visual Basic .NET]
Public Sub DeleteField ( _
    ByVal Field As IField _
public void DeleteField (
    IField Field
HRESULT DeleteField(
  IField* Field

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

Product Availability

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

Errors Returned






DeleteField removes the specified field from a table, object class or feature class. Fields that are required by the Geodatabase and cannot be removed include:

Prior to deleting a field from a class, an exclusive schema lock should be obtained using the ISchemaLock interface.

See Also

IClass Interface

.NET Related Topics

Using schema locks