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

属性Property 说明Description
Context (继承自 ManagementEventArgsContext (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.