Miner.Geodatabase.FeederManager Namespace > FeederChangedEvent Class : FeederWorkspace Property |
'Declaration
Public ReadOnly Property FeederWorkspace As IConnectionProperties
'Usage
Dim instance As FeederChangedEvent Dim value As IConnectionProperties value = instance.FeederWorkspace
public IConnectionProperties FeederWorkspace {get;}
public read-only property FeederWorkspace: IConnectionProperties;
public function get FeederWorkspace : IConnectionProperties
public: __property IConnectionProperties* get_FeederWorkspace();
public: property IConnectionProperties^ FeederWorkspace { IConnectionProperties^ get(); }
public void HandleEvent(FeederChangedEvent e) { // Writes a list of all edited features to the trace log. var feederInfoProvider = new FeederInfoProvider(e.FeederWorkspace); var featureClassContainer = (IFeatureClassContainer)(feederInfoProvider.WorkspaceInfo.Network).FeatureDataset; // Group diffs by object class ID foreach (var group in e.Diffs.GroupBy(diff => diff.Key.ObjectClassID)) { // Get the feature class name. var featureClass = featureClassContainer.Class[group.Key]; Trace.WriteLine(string.Format("Feature Class: {0}", featureClass.AliasName); foreach (var diff in group) { // Get the feeder IDs and write results to the trace stream. string feederIdsBefore = string.Join(",", diff.InfoBefore.FeederIDs); string feederIdsAfter = string.Join(",", diff.InfoAfter.FeederIDs); Trace.WriteLine(string.Format("ObjectID={0} [FeederIDs Before: {1}, FeederIds After:{2}]", diff.Key,feederIdsBefore, feederIdsAfter)); } } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2