언어

WmiEventWatcherTask 클래스

정의

Windows Management Instrumentation(WMI) 쿼리를 실행하고 컴퓨터 시스템에 대한 WMI 데이터를 반환하는 WMI 이벤트 워처 작업을 구성하고 실행하는 데 사용되는 멤버들을 포함합니다. 이 클래스는 상속할 수 없습니다.

public ref class WmiEventWatcherTask sealed : Microsoft::SqlServer::Dts::Runtime::Task, Microsoft::SqlServer::Dts::Runtime::IDTSBreakpointSite, Microsoft::SqlServer::Dts::Runtime::IDTSComponentPersist, Microsoft::SqlServer::Dts::Tasks::WmiEventWatcherTask::IWmiEventWatcherTask
[Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2016; © 2015 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=13.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")]
[System.Runtime.InteropServices.Guid("3F9BD2DF-08F5-4809-8946-2A3694DBF6F3")]
public sealed class WmiEventWatcherTask : Microsoft.SqlServer.Dts.Runtime.Task, Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist, Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.IWmiEventWatcherTask
[Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2017; © 2017 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=14.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")]
[System.Runtime.InteropServices.Guid("8984C204-B19A-4EEC-9A66-C4329CB8A27F")]
public sealed class WmiEventWatcherTask : Microsoft.SqlServer.Dts.Runtime.Task, Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist, Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.IWmiEventWatcherTask
[Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2019; © 2019 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=15.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")]
[System.Runtime.InteropServices.Guid("DE6F9E8F-435D-4F98-BF59-0C03EF080720")]
public sealed class WmiEventWatcherTask : Microsoft.SqlServer.Dts.Runtime.Task, Microsoft.SqlServer.Dts.Runtime.IDTSBreakpointSite, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist, Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.IWmiEventWatcherTask
[<Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2016; © 2015 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=13.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")>]
[<System.Runtime.InteropServices.Guid("3F9BD2DF-08F5-4809-8946-2A3694DBF6F3")>]
type WmiEventWatcherTask = class
    inherit Task
    interface IWmiEventWatcherTask
    interface IDTSBreakpointSite
    interface IDTSSuspend
    interface IDTSComponentPersist
[<Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2017; © 2017 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=14.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")>]
[<System.Runtime.InteropServices.Guid("8984C204-B19A-4EEC-9A66-C4329CB8A27F")>]
type WmiEventWatcherTask = class
    inherit Task
    interface IWmiEventWatcherTask
    interface IDTSBreakpointSite
    interface IDTSSuspend
    interface IDTSComponentPersist
[<Microsoft.SqlServer.Dts.Runtime.DtsTask(HelpKeyword="sql13.dts.designer.wmieventwatchertask.F1", LocalizationType=typeof(Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTask.Localized), SamplesTag="SsisWmiEventWatcherTask", TaskContact="WMI Event Watcher Task; Microsoft Corporation; SQL Server 2019; © 2019 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1", TaskType="DTS90", UITypeName="Microsoft.SqlServer.Dts.Tasks.WmiEventWatcherTaskUI.WmiEventWatcherTaskUI, Microsoft.SqlServer.WMIEWTaskUI, Version=15.0.0.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91")>]
[<System.Runtime.InteropServices.Guid("DE6F9E8F-435D-4F98-BF59-0C03EF080720")>]
type WmiEventWatcherTask = class
    inherit Task
    interface IWmiEventWatcherTask
    interface IDTSBreakpointSite
    interface IDTSSuspend
    interface IDTSComponentPersist
Public NotInheritable Class WmiEventWatcherTask
Inherits Task
Implements IDTSBreakpointSite, IDTSComponentPersist, IWmiEventWatcherTask
상속
WmiEventWatcherTask
특성
구현

설명

이 클래스는 연결을 이용 WMIConn 해 서버에 접속하고, Windows Management Instrumentation Query Language(WQL) 쿼리를 실행하며, 쿼리와 관련된 이벤트가 발생하기를 기다립니다. 그 후 작업은 WMI 이벤트가 발생했는지 알림을 제공합니다. WQL 쿼리는 직접 제공할 수도 있고, 변수나 파일 연결을 통해 실행 시 동적으로 WQL 쿼리를 제공할 수도 있습니다.

마찬가지로, 이 클래스는 파일 연결이나 변수를 사용하여 WQL 쿼리의 결과를 받을 수 있습니다. WQL 쿼리 결과의 출력 유형도 지정할 수 있습니다.

이 작업의 기능에 대한 자세한 내용은 WMI 이벤트 감시 작업을 참조하세요.

생성자

Name Description
WmiEventWatcherTask()

WmiEventWatcherTask 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
ActionAtEvent

작업이 Windows Management Instrumentation(WMI) 이벤트를 받았을 때 어떻게 WmiEventWatcherTask 반응하는지를 결정합니다.

ActionAtTimeout

지정된 Windows Management Instrumentation(WMI) 이벤트를 받지 않고 작업이 타임아웃될 때 어떻게 WmiEventWatcherTask 반응하는지 결정합니다.

AfterEvent

작업이 지정된 Windows Management Instrumentation(WMI) 이벤트를 받았을 때 어떻게 WmiEventWatcherTask 반응하는지를 결정합니다.

AfterTimeout

지정된 Windows Management Instrumentation(WMI) 이벤트를 받지 않고 작업이 타임아웃될 때 어떻게 WmiEventWatcherTask 반응하는지 결정합니다.

DebugMode

브레이크포인트가 활성화되었는지 확인해야 하는지 여부를 나타내 WmiEventWatcherTask 는 불리언입니다.

ExecutionValue

작업 결과를 WmiEventWatcherTask 포함하는 객체를 얻습니다.

NumberOfEvents

Windows Management Instrumentation(WMI) 이벤트 WmiEventWatcherTask 의 수를 받거나 설정합니다.

SuspendRequired

작업이 중단점에 도달했을 때 중단해야 하는지 알려주는 불리언을 받거나 설정합니다. 이 값은 실행 엔진이 작업과 컨테이너에 대해 브레이크포인트가 발생했을 때 설정합니다.

TargetServerVersion

Windows Management Instrumentation(WMI) 쿼리를 실행하고 컴퓨터 시스템에 대한 WMI 데이터를 반환하는 WMI 이벤트 워처 작업을 구성하고 실행하는 데 사용되는 멤버들을 포함합니다. 이 클래스는 상속할 수 없습니다.

(다음에서 상속됨 Task)
Timeout

작업이 Windows Management Instrumentation(WMI) 이벤트를 받기 전에 기다려야 하는 초수를 받거나 설정합니다.

Version

회원 해임; 참고: '비고'. 작업 버전을 반환합니다. 이 속성은 읽기 전용입니다.

(다음에서 상속됨 Task)
WmiConnection

작업에서 WmiEventWatcherTask 사용하는 클래스 이름을 WMIConn 받거나 설정합니다.

WqlQuerySource

Windows Management 계측 쿼리 언어(WQL) 쿼리의 소스를 받거나 설정하여 .WmiEventWatcherTask

WqlQuerySourceType

Windows Management Instrumentation Query Language(WQL) 쿼리WmiEventWatcherTask의 소스 유형(예: 파일 연결 또는 변수)을 나타내는 값을 얻거나 설정합니다QuerySourceType.

메서드

Name Description
AcceptBreakpointManager(BreakpointManager)

과제에 WmiEventWatcherTask 대한 참조를 BreakpointManager 전달합니다. 이 메서드는 런타임에서 호출되며 코드에서는 사용되지 않습니다.

CanUpdate(String)

회원 해임; 참고: '비고'. 새 패키지 XML이 이전 패키지 XML을 업데이트할 수 있는지 여부를 나타내는 불리언입니다.

(다음에서 상속됨 Task)
Equals(Object)

두 개체 인스턴스가 같은지 여부를 확인합니다.

(다음에서 상속됨 DtsObject)
Execute(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging, Object)

일을 수행한다.

GetConnectionID(Connections, String)

연결 ID를 포함하는 문자열을 받습니다.

(다음에서 상속됨 Task)
GetConnectionName(Connections, String)

연결 이름을 포함하는 문자열을 얻습니다.

(다음에서 상속됨 Task)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 DtsObject)
InitializeTask(Connections, VariableDispenser, IDTSInfoEvents, IDTSLogging, EventInfos, LogEntryInfos, ObjectReferenceTracker)

작업과 WmiEventWatcherTask 관련된 속성을 초기화합니다. 이 메서드는 런타임에서 호출되며 코드에서는 사용되지 않습니다.

LoadFromXML(XmlElement, IDTSInfoEvents)

이 메서드는 애플리케이션 코드로는 호출할 수 없습니다. .xml저장된 패키지를 불러오려면 다음 LoadPackage(String, IDTSEvents) 메서드를 사용하세요.

ResumeExecution()

잠시 일시 중지한 후 다시 작업을 계속한다. 작업 또는 컨테이너는 런타임 엔진에 의해 재개됩니다.

SaveToXML(XmlDocument, IDTSInfoEvents)

이 메서드는 애플리케이션 코드로는 호출할 수 없습니다. 패키지를 .xml로 저장하려면 다음 SaveToXml(String, Package, IDTSEvents) 방법을 사용하세요.

SuspendExecution()

실행 파일이 일시 중지되어야 함을 나타냅니다. 이 메서드는 런타임 엔진에서 호출됩니다.

Update(String)

회원 해임; 참고: '비고'. 이 메서드는 true로 설정되면 CanUpdate(String) 기존 패키지 XML을 새 패키지 XML로 업데이트합니다.

(다음에서 상속됨 Task)
Validate(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging)

작업이 제대로 구성되었는지 확인합니다.

적용 대상