Installs instrumented assemblies. Include an instance of this installer class in the project installer for an assembly that includes instrumentation.
For a list of all members of this type, see ManagementInstaller Members.
[Visual Basic] Public Class ManagementInstaller Inherits Installer [C#] public class ManagementInstaller : Installer [C++] public __gc class ManagementInstaller : public Installer [JScript] public class ManagementInstaller extends Installer
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
If this is the only installer for your application, you may use the helper class DefaultManagementProjectInstaller provided in this namespace.
[Visual Basic, C#] If you have a master project installer for your project, add the following code to your project installers constructor:
[C#] // Instantiate installer for assembly. ManagementInstaller managementInstaller = new ManagementInstaller(); // Add installer to collection. Installers.Add(managementInstaller); [Visual Basic] 'Instantiate installer for assembly. Dim managementInstaller As New ManagementInstaller() 'Add installer to collection. Installers.Add(managementInstaller)
[C++, JScript] No example is available for C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button in the upper-left corner of the page.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Management (in System.Management.dll)