Partager via


Views::Count property

The Count property returns the number of View objects that are in the Views collection. This property is read-only.

Syntax

Property Count As Long

Property value

The number of View objects contained in this collection.

Examples

' Retrieve the number of View objects.
Dim nCount As Long
nCount = objViews.Count

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.Item