Version

GetItem(Int32,ICreateItemCallback) Method

Gets the item at the specified index. If the item at the specified index is null and createItemCallback parameter is non-null, it will call CreateItem on the callback to create it and set it on the array at the specified index.
Syntax
'Declaration
 
Public Overloads Function GetItem( _
   ByVal index As Integer, _
   ByVal createItemCallback As ICreateItemCallback _
) As Object
public object GetItem( 
   int index,
   ICreateItemCallback createItemCallback
)

Parameters

index
The index of the item to get.
createItemCallback
A callback mechanism used to insert new items when null slots are encountered.

Return Value

The item at the specified index, or null if no item exists.
Requirements

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