HostedEventProvider.Interval Property
Gets or sets the interval at which the hosted event provider runs.
命名空間: Microsoft.SqlServer.Management.Nmo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
語法
'宣告
Public Property Interval As TimeSpan
public TimeSpan Interval { get; set; }
public:
property TimeSpan Interval {
TimeSpan get ();
void set (TimeSpan value);
}
/** @property */
public TimeSpan get_Interval ()
/** @property */
public void set_Interval (TimeSpan value)
public function get Interval () : TimeSpan
public function set Interval (value : TimeSpan)
屬性值
A TimeSpan object that specifies the interval.
備註
If you specify a StartTime value, the Interval value must divide evenly into a 24-hour period. For instance, 15 minutes is a valid interval, causing the event provider to run 96 times within a 24-hour period. However, 14 minutes is not a valid interval, because it does not divide evenly into a 24-hour period.
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
HostedEventProvider Class
HostedEventProvider Members
Microsoft.SqlServer.Management.Nmo Namespace