共用方式為


IWmiEventWatcherTask.WmiConnection 屬性

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

Gets or sets the name of the WMI connection associated with the task.

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

語法

'宣告
Property WmiConnection As String 
    Get 
    Set
'用途
Dim instance As IWmiEventWatcherTask 
Dim value As String 

value = instance.WmiConnection

instance.WmiConnection = value
string WmiConnection { get; set; }
property String^ WmiConnection {
    String^ get ();
    void set (String^ value);
}
abstract WmiConnection : string with get, set
function get WmiConnection () : String 
function set WmiConnection (value : String)

屬性值

型別:System.String
The name of the WMI connection associated with the task.

請參閱

參考

IWmiEventWatcherTask 介面

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