语言

WmiEventWatcherTask.Timeout 属性

定义

获取或设置任务应等待的秒数,以接收 Windows 管理仪表(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的动作。 否则,任务执行 和 AfterEvent 属性值指示ActionAtEvent的动作。

适用于