Extensions::Item method

The Item method returns the Extension object at a specified index.

Syntax

Extensions.Item( _
  ByVal Index As Long _
) As Extension

Parameters

Index

The index of the extension being retrieved. The index is 1-based.

Examples

' Retrieve the count of Extension objects.
Dim nCount As Long
nCount = objExts.Count
 
' Iterate the Extensions.
Dim i As Long
Dim objExt As MMC20.Extension
For i = 1 To nCount
    Set objExt = objExts.Item(i)
    ' Use the Extension object.
    ' This code will display the Extension name.
    MsgBox (objExt.Name)
    ' Free the object for the next iteration.
    Set objExt = Nothing
Next i

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmcndmgr.dll
IID
IID_Extensions is defined as 82DBEA43-8CA4-44bc-A2CA-D18741059EC8

See also

Extensions.Count