ArcObjects Library Reference (GeoDatabase) |
|
Provides access to members that return information about the field. Note: the IField interface has been superseded byIField2. Please consider using the more recent version.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
The field object represents a column in a table. A field has many properties, the most obvious ones being its name and its datatype. The esriFieldType enumeration lists the possible datatypes.
Members
|
Name |
Description |
|
AliasName |
The alias name of the field. |
|
CheckValue |
Indicates if the value is valid given the field definition. |
|
DefaultValue |
The default value of the field. |
|
Domain |
The default domain of the field. |
|
DomainFixed |
Indicates if the field's domain is fixed. |
|
Editable |
Indicates if the field is editable. |
|
GeometryDef |
The geometry definition for the field if IsGeometry is TRUE. |
|
IsNullable |
Indicates if the field can contain null values. |
|
Length |
The maximum length, in bytes, for values described by the field. |
|
Name |
The name of the field. |
|
Precision |
The precision for field values. |
|
Required |
Indicates if the field is required. |
|
Scale |
The scale for field values. |
|
Type |
The type of the field. |
|
VarType |
The VARTYPE of the field (e.g. VT_I4). |
CoClasses that implement IField
CoClasses and Classes |
Description |
Field |
Esri Field object. |
Remarks
When you create a field of type esriFieldTypeSingle, esriFieldTypeDouble or esriFieldTypeInteger, and specify zero for precision and scale, the geodatabase will attempt to create a binary type field if the underlying database supports it. Personal geodatabases support only binary type fields. ArcGIS ignores precision and scale of binary type fields.
The length property of a field has meaning only for esriFieldTypeString fields. The length property for all other field types is not important and will be ignored if specified.
.NET Snippets
Create Table |
Create FeatureClass |
Write Blob Field Contents To File |
Write Blob File Contents To Table Row Field
.NET Samples
Export any network analysis class to a text file (Code Files:
NAClassToTextfileCmd) |
Convert part to feature command (Code Files:
ConvertPart) |
Create a custom raster type (Code Files:
ThumbnailBuilder) |
Create a custom raster type from the ground up for DMCII data (Code Files:
DMCIIRasterType) |
Find the closest intersection from a point (Code Files:
FindClosestIntersection) |
Displaying MapTips in the MapControl (Code Files:
MapTips) |
Calculate area geoprocessing function tool (Code Files:
CalculateAreaFunction) |
Bind a geodatabase table to a .NET control (Code Files:
FieldPropertyDescriptor TableWrapper) |
StreetMap routing (Code Files:
RoutingForm) |
Timestamper class extension (Code Files:
TimestampClassDescription TimestampClassExtension TimestampPropertyPage) |
Geoprocessing field mapping (Code Files:
FieldMapping) |
Single line address geocoding (Code Files:
SingleLineGeocodingForm) |
Retrieve a color ramp from the SymbologyControl (Code Files:
SymbolForm)
.NET Related Topics
Assigning domains to fields |
Building a custom geoprocessing function tool |
Converting simple data |
Copying or loading data while preserving GlobalID values |
Creating a plug-in data source |
Creating an address locator |
Creating annotation and dimension feature classes |
Creating class extensions |
Creating feature classes |
Creating fields |
Creating indexes |
Creating relationship classes |
Creating tables |
Geodatabase API best practices |
Geometry |
Geoprocessing services |
Getting a list of schema differences between replicas |
How to find the address closest to a point using reverse geocoding |
How to geocode a single address |
How to geocode a table of addresses |
How to standardize an address |
How to work with geocoding properties |
Migrating VB6 to VB.NET for ArcGIS 10 |
Updating geometry of existing features |
Using schema locks |
Working with fields |
Working with indexes