Поделиться через


AppEvents::OnSnapInRemoved event

The OnSnapInRemoved event occurs when a snap-in is removed from the application.

Syntax

Application.OnSnapInRemoved( _
  ByVal Document As Document, _
  ByVal SnapIn As SnapIn _
)

Parameters

Document

The Document object from which the snap-in is removed.

SnapIn

The SnapIn object removed.

Return value

This event does not return a value.

Examples

Private Sub g_AppMMC_OnSnapInRemoved( _
                ByVal Document As MMC20.Document, _
                ByVal SnapIn As MMC20.SnapIn)
    MsgBox ("OnSnapInRemoved Event: " & SnapIn.Name)
End Sub

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
MmcNdMgr.dll
CLSID
CLSID_Application is defined as 49B2791A-B1AE-4C90-9B8E-E860BA07F889
IID
DIID_AppEvents is defined as FC7A4252-78AC-4532-8C5A-563CFE138863