This document is archived and information here might be outdated.  Recommended version.


IDDECommandHandler Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > ID > IDDECommandHandler Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Framework)  

IDDECommandHandler Interface

Provides access to members that handle DDE commands.

Product Availability

Available with ArcGIS Desktop.

Description

This interface uses it two members to handle incoming Dynamic Data Exchange (DDE) messages and to act upon these if required. The incoming message is passed to each of the members in turn in the form of an ANSI string.

When To Use

Inside ArcMap this interface is already used by the GNetCommandHandler CoClass, however of most importance to developers is the fact that they may implement the interface inside a class of their own. Such a class when registered in the "ESRI MX DDECommandHandlers" category will be given the opportunity, by ArcMap, to respond to any incoming DDE messages. This is done by sending the incoming message as a string, first to CanExecute and then if required to Execute. Typically the CanExecute function would check the incoming string and if suitable would return a value of TRUE thus causing ArcMap to call Execute where the appropriate action may be taken.

Members

Name Description
Method CanExecute Indicates if the DDE command can be executed.
Method Execute Executes the DDE command.

CoClasses that implement IDDECommandHandler

CoClasses and Classes Description
GNetCommandHandler (esriArcMapUI) GNet Command Handler.