IModelInfo Interface

Provides access to the model name of the field.

When To Use

Object classes and fields in a geodatabase can have between one and three names. The name of the object class or field, which is the same as the name of the table or column in the DBMS in which the objects in the object class are stored, the alias name which the user can set for display purposes in end user applications. The third name is the model name which is a tool for developers of custom objects to use to guarantee the names of objects independent of the true name or alias name.

The ModelInfointerface can be used to get or set the model name for an object class, or a field in an object class in the geodatabase. You can also use the IClassSchemaEditinterface to modify the model names for object classes and fields.


Name Description
Read/write property ModelName The model name of the field.

IModelInfo.ModelName Property

The model name of the field.

Public Property ModelName As String
public string ModelName {get; set;}


Returns the model name currently associated with the field or object class.

Classes that implement IModelInfo

Classes Description
FeatureClass Esri Feature Class object.
FgdbTableName (esriDataSourcesGDB) File GeoDatabase Table Name object.
Field Esri Field object.
ObjectClass Esri Object Class object.
ObjectClassName Esri Object Class Name object.
RasterCatalog A collection of raster datasets in a Geodatabase table.
TableName Esri Table Name object.


When using the IModelInfoobject to alter an object class' or field's model name, you should first acquire an exclusive schema lock using the ISchemaLockinterface to be sure that another application or user does not have the class open while you are trying to modify its schema.

You can QI for the IModelInfointerface from the IObjectClassinterface to work with an object class' model name, or from IFieldto work with a field's model name.

Note that IModelInfois also available on the lightweight TableNameobject.

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