ESRI.ArcGIS.E2API Feedback via the User Forum
SelfContained Property
See Also 
ESRI.ArcGIS.E2API Namespace > Result Class : SelfContained Property


If a result is SelfContained it can be deleted, otherwise it is considered a sub-node that is dependant on it's parent node.

Syntax

Visual Basic (Declaration) 
Public Property SelfContained As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Result
Dim value As Boolean
 
instance.SelfContained = value
 
value = instance.SelfContained
C# 
public bool SelfContained {get; set;}

Return Value

True if the result is self-contained; otherwise False.

Remarks

Self contained results are those which cannot be treated individually but only as part of the set of child results. If SelfContained is true, then the result can be treated as an independent value. If SelfContained is false, this indicates that the result can only exist as part of a set of results. This value therefore affects the default options which appear on the context menu for the result; for example, if SelfContained is false, then the result cannot be deleted; instead the entire parent result must be deleted, removing all the result siblings.

By default, this property is True, indicating that the most common case is to have a Result which is independent of it's parent and siblings, and can be deleted, refreshed, or hidden, independently.

An example of the SelfContained property being False is one step of a series of turn-by-turn driving directions; an individual step cannot be deleted or hidden as it would make the other sibling results incorrect or nonsensical.

Platforms

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Version Information

This property was added to the E2API at version 1.0.0.348.

See Also