I'm sure this is possible I just can't seem to figure out how...previously with ArcObjects I was able to operate on existing feature classes via layer files (keeping definition queries intact) outside of a map. Is this possible with Pro? The thing I keep running into is:
LayerFactory.Instance.CreateFeatureLayer -- but this requires a map instance
Any help would be great!