InsertIOD method (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short InsertIOD ( BOOL bChild, short nType, long lCode, BSTR pszName, short nUsage, BSTR pszDescription );

Overview

Refer to Working with Information Object Definitions.

Remarks

Inserts a new item in the IOD Structure, based on the value of bChild.

The illustrations below show how items are added to the IOD Structure (internally maintained as a tree), based on the value of bChild.

For the sake of these illustrations, the order of siblings is top to bottom. Therefore, since added items become the last sibling or the last child, these are drawn at the bottom of the appropriate group of items.

In this illustration, the CurrentIOD property contains Item 1 and bChild is False. The new item is added as the last sibling of Item 1.

image\IODIsSib.gif

In this illustration, the CurrentIOD property contains Item 1 and bChild is True. The new item is added as the last child of Item 1.

image\IODIsChd.gif

See Also

Elements:

DeleteIOD method, ResetIOD method, DefaultIOD method

Topics:

Information Object Definitions: Inserting and Deleting IODs