SnapInInstaller Class

.NET Framework 3.5

Utilizes reflection to search for the snap-ins that are defined within the currently loaded assembly. The resulting metadata is then used to populate or remove register entries that correspond to each snap-in. For each assemblies in which snap-ins are defined, a class that is derived from the SnapInInstaller class must exist with the RunInstallerAttribute set to true. Unless additional assembly registration needs to be performed, this derived class declaration does not need to override any of the SnapInInstaller virtual methods. The derived class provides an entry point for tools such as InstallUtil.exe to execute the framework installer code. The SnapInInstaller class is the base class for snap-in registration.

Namespace:  Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

public class SnapInInstaller : Installer

The current implementation of the SnapInInstaller class assumes and enforces the fact that an assembly contains at most one snap-in per assembly. Furthermore, it is assumed that all of the nodes for that snap-in that can be registered are also defined within the assembly. Any nodes that are defined within an assembly are assumed to be associated with the snap-in that is defined within that assembly.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft