Instrumentation.RegisterAssembly(Assembly) 方法
定义
将指定程序集中的管理实例和事件类注册到 WMI。Registers the management instance or event classes in the specified assembly with WMI. 这确保了检测架构可由 System.Management 客户端应用程序访问。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)
参数
- assemblyToRegister
- Assembly
包含检测实例或事件类型的 Assembly。The Assembly containing instrumentation instance or event types.
注解
.NET Framework 安全性.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.