ArcFM Desktop Developer Guide
QueryExcluding Method
Example 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

The D8 tree to be searched.
The query expression to be evaluated for each D8LListItem in the tree.
The query expression which will exclude matching child nodes.
Initiates a recursive search of child nodes of the given tree. The search will not include any child nodes matching the exclusion expression.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function QueryExcluding( _
   ByVal source As ID8List, _
   ByVal queryExpression As Func(Of ID8ListItem,Boolean), _
   ByVal childrenToExclude As Func(Of ID8ListItem,Boolean) _
) As IEnumerable(Of ID8ListItem)
'Usage
 
Dim source As ID8List
Dim queryExpression As Func(Of ID8ListItem,Boolean)
Dim childrenToExclude As Func(Of ID8ListItem,Boolean)
Dim value As IEnumerable(Of ID8ListItem)
 
value = D8ListQueryExtensions.QueryExcluding(source, queryExpression, childrenToExclude)

Parameters

source
The D8 tree to be searched.
queryExpression
The query expression to be evaluated for each D8LListItem in the tree.
childrenToExclude
The query expression which will exclude matching child nodes.

Return Value

An enumerable collection of D8ListItems excluding items for childrenToExclude returns false
Example
Search the selection tree for all rows without following relationship classes.
public void GetAllSelectedObjectsDoNotFollowRelationshipClasses()
{
    var selectionTab = (ID8List)FeSelTopLevel.Instance;
    var selectedFeature = selectionTab.QueryExcluding(
        item => item is ID8Feature,
        excludedItem => excludedItem is IMMRelationship);
}
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

D8ListQueryExtensions Class
D8ListQueryExtensions Members

 

 


Send Comment