次の方法で共有


WmiEventWatcherTask.WmiConnection プロパティ

WmiEventWatcherTask タスクが使用する WMIConn クラスの名前を取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask
アセンブリ:  Microsoft.SqlServer.WMIEWTask (Microsoft.SqlServer.WMIEWTask.dll)

構文

'宣言
Public Property WmiConnection As String 
    Get 
    Set
'使用
Dim instance As WmiEventWatcherTask 
Dim value As String 

value = instance.WmiConnection

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

プロパティ値

型: System.String
タスクに関連付けられた WMIConn クラスの名前です。

実装

IWmiEventWatcherTask.WmiConnection

説明

WMIConn クラスには、タスクをサーバーに接続するために Windows Management Instrumentation (WMI) で必要な情報が含まれます。 このプロパティで指定されたサーバーは、WqlQuerySource で参照される Windows Management Instrumentation Query Language (WQL) クエリが実行されるインスタンスです。

関連項目

参照

WmiEventWatcherTask クラス

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