Partager via


SnapIns Collection object

The SnapIns object is a collection of SnapIn objects.

Members

The SnapIns Collection object has these types of members:

Methods

The SnapIns Collection object has these methods.

Method Description
Add Adds a SnapIn object to the collection, given its name, CLSID, or ProgID.
Item Retrieves the SnapIn object at a specified index.
Remove Removes a SnapIn object from the collection, thereby removing it from the console.

Properties

The SnapIns Collection object has these properties.

Property Description
Count
Number of SnapIn objects in the collection.

Examples

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

Dim objSnap As MMC20.SnapIn
' objSnapIns is a SnapIns collection.
For Each objSnap In objSnapIns
    ' Use the SnapIn object.
    MsgBox (objSnap.Name)
Next

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