Instrumentation.IsAssemblyRegistered(Assembly) 方法
定义
确定指定程序集的检测架构是否已经正确注册到 WMI。Determines if the instrumentation schema of the specified assembly has already been correctly registered with 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。The Assembly containing instrumentation instance or event types.
返回
如果指定程序集中的检测架构已注册到 WMI 中,则为 true;否则为 false。true if the instrumentation schema in the specified assembly is registered with WMI; otherwise, false.
注解
.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.