ArcObjects Library Reference (GeoDatabase)  

IQueryFilter.AddField Method

Appends a single field name to the list of sub-fields.

[Visual Basic .NET]
Public Sub AddField ( _
    ByVal subField As String _
)
[C#]
public void AddField (
    string subField
);
[C++]
HRESULT AddField(
  BSTR subField
);
[C++]

Parameters

subField [in]   subField is a parameter of type BSTR

Product Availability

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

Remarks

The AddField method can be used to add a field to the SubFields list before the query is executed. Adding a field will clear the default "*" value from the SubFields. Setting it back to this original "*" can be done either by setting Subfields to "*" or to "".

See Also

IQueryFilter Interface