ArcFM Responder Mobile Developer Guide
QueryExcluding Method
Example 






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. 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
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function QueryExcluding( _
   ByVal source As ID8List, _
   ByVal queryExpression As System.Func(Of ID8ListItem,Boolean), _
   ByVal childrenToExclude As System.Func(Of ID8ListItem,Boolean) _
) As System.Collections.Generic.IEnumerable(Of ID8ListItem)
'Usage
 
Dim source As ID8List
Dim queryExpression As System.Func(Of ID8ListItem,Boolean)
Dim childrenToExclude As System.Func(Of ID8ListItem,Boolean)
Dim value As System.Collections.Generic.IEnumerable(Of ID8ListItem)
 
value = D8ListQueryExtensions.QueryExcluding(source, queryExpression, childrenToExclude)
[System.Runtime.CompilerServices.Extension()]
public static System.Collections.Generic.IEnumerable<ID8ListItem> QueryExcluding( 
   ID8List source,
   System.Func<ID8ListItem,bool> queryExpression,
   System.Func<ID8ListItem,bool> childrenToExclude
)
public function QueryExcluding( 
    source: ID8List;
    queryExpression: System.Func;
    childrenToExclude: System.Func
): System.Collections.Generic.IEnumerable; static; 
System.Runtime.CompilerServices.ExtensionAttribute()
public static function QueryExcluding( 
   source : ID8List,
   queryExpression : System.Func,
   childrenToExclude : System.Func
) : System.Collections.Generic.IEnumerable;
[System.Runtime.CompilerServices.Extension()]
public: static System.Collections.Generic.IEnumerable<ID8ListItem*>* QueryExcluding( 
   ID8List* source,
   System.Func<ID8ListItem*,bool>* queryExpression,
   System.Func<ID8ListItem*,bool>* childrenToExclude
) 
[System.Runtime.CompilerServices.Extension()]
public:
static System.Collections.Generic.IEnumerable<ID8ListItem^>^ QueryExcluding( 
   ID8List^ source,
   System.Func<ID8ListItem^,bool>^ queryExpression,
   System.Func<ID8ListItem^,bool>^ 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 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

See Also

Reference

D8ListQueryExtensions Class
D8ListQueryExtensions Members

Send Feedback