Instrumentation.IsAssemblyRegistered(Assembly) 方法

定义

确定指定程序集的检测架构是否已经正确注册到 WMI。

public:
 static bool IsAssemblyRegistered(System::Reflection::Assembly ^ assemblyToRegister);
public static bool IsAssemblyRegistered (System.Reflection.Assembly assemblyToRegister);
static member IsAssemblyRegistered : System.Reflection.Assembly -> bool
Public Shared Function IsAssemblyRegistered (assemblyToRegister As Assembly) As Boolean

参数

assemblyToRegister
Assembly

包含检测实例或事件类型的 Assembly

返回

如果指定程序集中的检测架构已注册到 WMI 中,则为 true;否则为 false

注解

.NET Framework 安全性

对直接调用方的完全信任。 此成员不能由部分信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码中的库

适用于