ManagementBaseObject.Explicit(ManagementBaseObject to IntPtr) 运算符
定义
提供由 ManagementObject 表示的内部 WMI 对象。Provides the internal WMI object represented by a ManagementObject.
public:
static explicit operator IntPtr(System::Management::ManagementBaseObject ^ managementObject);
public static explicit operator IntPtr (System.Management.ManagementBaseObject managementObject);
static member op_Explicit : System.Management.ManagementBaseObject -> nativeint
Public Shared Narrowing Operator CType (managementObject As ManagementBaseObject) As IntPtr
参数
- managementObject
- ManagementBaseObject
ManagementBaseObject,它引用请求的 WMI 对象。The ManagementBaseObject that references the requested WMI object.
返回
一个 IntPtr,它表示内部 WMI 对象。An IntPtr representing the internal WMI object.
注解
此运算符由检测代码在内部使用。This operator is used internally by instrumentation code. 它不适合由常规客户端或检测应用程序直接使用。It is not intended for direct use by regular client or instrumented applications.
.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.