|
![]() |
Creates condition that matches if item does not match this condition
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Visual Basic |
---|
Public Function Negate As SearchCondition |
C# |
---|
public SearchCondition Negate() |
Visual C++ |
---|
public: SearchCondition^ Negate() |
Examples

using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Windows.Forms; using System.Text; //set a search condition SearchCondition s1 = SearchCondition.HasCategoryByName(PropertyCategoryNames.Transform); //invert the search, i.e. NOT Has Category By Name SearchCondition s2 = s1.Negate(); //at this point s2 is not the same as s1
Exceptions
Exception | Condition |
---|---|
System..::..ObjectDisposedException | Object has been Disposed |