Version

Add Method (ListLevelDefinitionCollection)

Adds a level definition to the collection.
Syntax
'Declaration
 
Public Sub Add( _
   ByVal levelDefintion As ListLevelDefinition _
) 
public void Add( 
   ListLevelDefinition levelDefintion
)

Parameters

levelDefintion
the level definition to add
Exceptions
ExceptionDescription
System.InvalidOperationExceptionif collection is read only or Level is less than zero.
Remarks

Note: all level definitions in the collection are ordered via their ascending LevelNumbers. When a new lvele definition is added it is automatically slotted appropriately. If another definition was already at that level, the old level definition is replaced by the one that was added. Therefore, there can never be 2 definitions with the same Level in the collection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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