Platform SDK: Management Console |
Get/set string that uniquely identifies the list item.
ID As String
The default value value of the ID property is the value of Key. The ID property is used by the runtime to determine whether two list items represent the same underlying data. This comparison can be made between two list items from the same list view, from different list views, or from different instances of the same list view.
In virtual list views MMCListItem.ID is set to a string containing the index of the list item. If the snap-in needs to change this property it should do so in the GetVirtualItemData event.
The designer runtime uses this property when MMC asks it to compare two list items. This can happen after displaying a property page for a list item when the user selects a different scope item in the scope pane. The list view that owns the list item will be destroyed but the property page may be holding on to the orphaned MMCListItem object(s). For more information on handling this situation see "Handling Orphaned Property Pages."