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

其他资源

定义宿主事件提供程序
Interval Element (ADF)