Share via


WmiEventWatcherTask.Timeout 属性

定义

获取或设置在任务应等待接收 Windows Management Instrumentation (WMI) 事件多少秒后才超时。

public:
 property int Timeout { int get(); void set(int value); };
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), "TimeoutPropDesc")]
public int Timeout { get; set; }
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), "TimeoutPropDesc")>]
member this.Timeout : int with get, set
Public Property Timeout As Integer

属性值

一个整数,包含任务在超时前应等待接收 WMI 事件的秒数。如果设置为零 (0) ,则任务将无限期等待。 默认值为零 (0)。

实现

属性

注解

如果此属性中指定的时间在发生 WMI 事件之前已过,则任务将执行由属性值 ActionAtTimeoutAfterTimeout 属性指示的操作。 否则,该任务将执行由属性值 ActionAtEventAfterEvent 属性指示的操作。

适用于