Views::Item method

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

Syntax

Views.Item( _
  ByVal Index As Long _
) As View

Parameters

Index

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

Examples

' Retrieve the number of View objects.
Dim nCount As Long
nCount = objViews.Count
 
Dim i As Long
Dim objView As MMC20.View
 
' Iterate the views.
For i = 1 To nCount
    Set objView = objViews.Item(i)
    ' Use the View object.
    ' ...
    
    ' Free the View object for the next iteration.
    Set objView = Nothing
Next i

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_Views is defined as D6B8C29D-A1FF-4D72-AAB0-E381E9B9338D

See also

Views.Add

Views.Count