Edit

Share via


Instrumentation.RegisterAssembly(Assembly) Method

Definition

Registers the management instance or event classes in the specified assembly with WMI. This ensures that the instrumentation schema is accessible to System.Management client applications.

public:
 static void RegisterAssembly(System::Reflection::Assembly ^ assemblyToRegister);
public static void RegisterAssembly (System.Reflection.Assembly assemblyToRegister);
static member RegisterAssembly : System.Reflection.Assembly -> unit
Public Shared Sub RegisterAssembly (assemblyToRegister As Assembly)

Parameters

assemblyToRegister
Assembly

The Assembly containing instrumentation instance or event types.

Remarks

.NET Framework Security

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

Applies to