SnapIns::Count property

The Count property returns the number of SnapIn objects (primary stand-alone snap-ins) that are in the SnapIns collection. This property is read-only.

Syntax


Property Count As Long

Property value

The number of SnapIn objects contained in this collection.

Examples


' Retrieve the SnapIns property.
Dim objSnapIns As MMC20.SnapIns
Set objSnapIns = objDoc.SnapIns
 
' Retrieve the count of SnapIn objects.
Dim nSnapIns As Long
nSnapIns = objSnapIns.Count
' Display the count.
MsgBox ("There are " & nSnapIns & " snap-ins in the document.")
 
' Free the object when done.
Set objSnapIns = Nothing

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmcobj.h

IDL

Mmcobj.idl

DLL

Mmcndmgr.dll

IID

IID_SnapIns is defined as 2EF3DE1D-B12A-49D1-92C5-0B00798768F1

See also

SnapIns.Item
Extensions.Count

 

 

Show: