IComponent2 interface (mmc.h)

The IComponent2 interface, implemented by snap-ins, is introduced in MMC 2.0 and supersedes the IComponent interface.

Snap-ins written for MMC 2.0 and later should implement IComponent2, as the IComponent2::GetResultViewType2 and IComponent2::RestoreResultView methods provide a way to precisely restoring a result view.

Additionally, the IComponent2::QueryDispatch method provides an IDispatch interface to the View object for use with the MMC 2.0 Automation Object Model.

Inheritance

The IComponent2 interface inherits from the IUnknown interface. IComponent2 also has these types of members:

Methods

The IComponent2 interface has these methods.

 
IComponent2::GetResultViewType2

The GetResultViewType2 method retrieves the result view type. This method supersedes the IComponent::GetResultViewType method.
IComponent2::QueryDispatch

The QueryDispatch method returns the snap-in IDispatch interface for a specified item.
IComponent2::RestoreResultView

The RestoreResultView method restores the result view. This method enables a snap-in to restore snap-in-specific details of a result view. For more information, see Restoring Result Views.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h

See also

Restoring Result Views