共用方式為


IWmiEventWatcherTask.NumberOfEvents 屬性

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Gets or sets the number of WMI events for which the task should watch.

命名空間:  Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask
組件:  Microsoft.SqlServer.WMIEWTask (在 Microsoft.SqlServer.WMIEWTask.dll 中)

語法

'宣告
Property NumberOfEvents As Integer 
    Get 
    Set
'用途
Dim instance As IWmiEventWatcherTask 
Dim value As Integer 

value = instance.NumberOfEvents

instance.NumberOfEvents = value
int NumberOfEvents { get; set; }
property int NumberOfEvents {
    int get ();
    void set (int value);
}
abstract NumberOfEvents : int with get, set
function get NumberOfEvents () : int 
function set NumberOfEvents (value : int)

屬性值

型別:System.Int32
The number of WMI events for which the task should watch.

請參閱

參考

IWmiEventWatcherTask 介面

Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask 命名空間