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


IMdElement Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geoprocessing)  

IMdElement Interface

Provides access to properties/methods of a model element.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read/write property Altered Indicates if the model element has been altered by the user.
Read/write property Current Indicates if the model element is current (i.e., has been created).
Method GetDependents Returns an enumeration of model elements that are dependent on the model element in the given direction and of the given connection type.
Method GetMessages Returns the messages returned from the last call to Validate().
Read/write property ID Unique identifier of the model element.
Method IsDependentOn Returns whether or not the model element is dependent on the given model element in the given direction of the given connection type.
Read/write property Marked Indicates if the model element has been marked for validation/execution.
Read/write property Model The model the model element is contained within.
Read/write property Name Name of the model element.
Read-only property State The state of the model element.
Read/write property Valid Indicates if the model element is valid.
Method Validate Validates the model element.

CoClasses that implement IMdElement

CoClasses and Classes Description
MdProcess Model process object that represents a specific invokation of a particular geoprocessing tool.
MdVariable Model variable object that contains a value object.

Remarks

The IMdElement provides access to model element's properties such as State and Valid, and its methods such as GetMessages and Validate.

MdElement objects are the items that define the contents of a model. A Model Process [IMdProcess] represents the invocation of a tool with its set of values. A Moel Variable [IMdVariable] represents a specific value that is used as input or output of one or more model processes.

The attached sample code show how to access a model process.