ManagementEventWatcher.EventArrived 事件


出现新事件时发生。Occurs when a new event arrives.

 event System::Management::EventArrivedEventHandler ^ EventArrived;
public event System.Management.EventArrivedEventHandler EventArrived;
member this.EventArrived : System.Management.EventArrivedEventHandler 
Public Custom Event EventArrived As EventArrivedEventHandler 
Public Event EventArrived As EventArrivedEventHandler 




事件数据Event Data

事件处理程序接收 EventArrivedEventArgs 类型的变量,该变量包含与此事件相关的数据。The event handler receives an argument of type EventArrivedEventArgs containing data related to this event. 以下 EventArrivedEventArgs 属性提供特定于此事件的信息。The following EventArrivedEventArgs properties provide information specific to this event.

PropertyProperty 描述Description
Context (继承自 ManagementEventArgs) Context (inherited from ManagementEventArgs) 获取从触发事件的操作反射回的操作上下文。Gets the operation context echoed back from the operation that triggered the event.
NewEvent 获取上次传递的 WMI 事件。Gets the WMI event that was delivered.

.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.