I need to read a field's values from a Feature Class specifically it is a Feature Class in an enterprise geodatabase. The values will be populated as a Search Box suggestion source.
I can do that by creating a FeatureLayer via
LayerFactory.Instance.CreateFeatureLayer
and using RowCursor
using (ArcGIS.Core.Data.Table ProposedBoundariesTable = FLayer.GetTable())
{
using (RowCursor rowCursor = ProposedBoundariesTable.Search())
{
//collect the information
}
}
However, in some cases, I want end-users would be able to do make a quick search without creating a Feature Layer or project item. Is there a way to do that in ArcGIS Pro SDK?