Interface XYEventSource

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

XY event source object.

[Guid("2D04C042-7766-11D0-B77D-00805F7CED21")]
public interface XYEventSource : IDataset, IObjectClassEvents_Event
Inherited Members
IObjectClassEvents_Event.OnCreate
IObjectClassEvents_Event.OnDelete
IObjectClassEvents_Event.OnChange

Remarks

A table that contains a field with X coordinates and a field with Y coordinates can be used to dynamically create a point feature class. The feature class is dynamic in that the shapes are generated as needed from data in a source table rather than accessed from a physical data source. The source table that contains the coordinates is called the XY event table.

The XYEventSource class generates a dynamic featureclass from an XY event table. A point, based on the coordinates in the fields specified by XYEvent2FieldsProperties, is created for each row in the XY event table.

In order to create an XYEventSource, you must first create an XYEventSourceName. Since XYEventSource inherits from FeatureClass, it implements the same interfaces and can be treated like any other point feature class. It can be added to ArcMap as a point feature layer and even edited directly with the editor.

There may be some limitations imposed by the XY event table, however. For example, you will not be able to directly edit a feature class created from a delimited text file table since the editor doesn't allow text files to be edited directly. Also, you cannot add or move points using the tools in the editor toolbar. To add or move points, you must edit the coordinates or add new records to the table.