Inserts logical node with tag <not> under the parent node, which can be Item or Logical, and returns an Item Object that represents a newly inserted logical node.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public Item newNOT()
Visual Basic (Declaration)
Public Function newNOT As Item
J#
public Item newNOT()
JScript
public function newNOT() : Item

Return Value

Logical "NOT" item. Returned item shares dom with this item.

Remarks

Logical item is an item which node references to the "logical" tag, i.e. 'or', 'and' or 'not'. Logical items are used to build request conditions where item's properties serve as condition expressions. User has to use setProperty(...), setPropertyCondition(...) to set condition expressions on logical item (see example below). It's possible to build nested logical request conditions by calling newOR(), newAND() or newNOT() on a logical item.

Examples

CopyC#
...
var myItem = myInnovator.newItem('Foo','get');
var logicalNOT = myItem.newNOT();
logicalNOT.setProperty('foo','bar1');
//The following line of code is optional because 'eq' is the default property condition:
logicalNOT.setPropertyCondition('foo', 'eq');
...
CopyC#
...
var myItem = myInnovator.newItem('Foo','get');
var logicalNOT = myItem.newNOT();
logicalNOT.setProperty('foo','bar1, bar2);
logicalNOT.setPropertyCondition('foo','in')
...

Exceptions

ExceptionCondition
System..::.Exception If the instance is neither a single regular item (i.e. item referncing <Item> node) nor a logical item.
System..::.ArgumentExceptionthis.node is read-only.

See Also