Partager via


Views Collection object

The Views object is a collection of View objects.

Members

The Views Collection object has these types of members:

Methods

The Views Collection object has these methods.

Method Description
Add Adds a View object to the collection.
Item Retrieves the View object at the specified index.

Properties

The Views Collection object has these properties.

Property Description
Count
Retrieves the number of View objects in the collection.

Examples

The Views collection supports the "For Each" enumeration syntax, as shown in the following example.

Dim objView As MMC20.View
' objViews is a Views collection.
For Each objView In objViews
    ' Use the View object.
    MsgBox (objView.Memento)
Next

Requirements

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