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


IFields.FindFieldByAliasName Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFields Interface > IFields.FindFieldByAliasName Method
ArcGIS Developer Help

IFields.FindFieldByAliasName Method

Finds the index of the field with the alias name in the fields collection.

[Visual Basic .NET]
Public Function FindFieldByAliasName ( _
    ByVal Name As String _
) As Integer
[C#]
public int FindFieldByAliasName (
    string Name
);
[C++]
HRESULT FindFieldByAliasName(
  BSTR Name
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR

Product Availability

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

Errors Returned

If no field is found, this method returns -1.

See Also

IFields Interface

.NET Samples

Implementing extended criteria for some predefined schematic rules