ManagementEventWatcher.Stopped 事件

定义

取消预订时发生。Occurs when a subscription is canceled.

public:
 event System::Management::StoppedEventHandler ^ Stopped;
public event System.Management.StoppedEventHandler Stopped;
member this.Stopped : System.Management.StoppedEventHandler 
Public Event Stopped As StoppedEventHandler 

注解

事件数据Event Data

事件处理程序接收 StoppedEventArgs 类型的参数,该参数包含与此事件相关的数据。The event handler receives an argument of type StoppedEventArgs containing data related to this event. 以下 StoppedEventArgs 属性提供特定于此事件的信息。The following StoppedEventArgs 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.
Status 获取操作的完成状态。Gets the completion status of the operation.

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

适用于