This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IQ > IQueryFilter Interface > IQueryFilter.AddField Method (ArcObjects .NET 10.4 SDK) |
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
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 "".