Поделиться через


Класс WmiDataReaderTask

Contains the members used to configure and run a WMI Data Reader task, which runs Windows Management Instrumentation (WMI) queries and returns WMI data about a computer system. This class cannot be inherited.

Пространство имен:  Microsoft.SqlServer.Dts.Tasks.WmiDataReaderTask
Сборка:  Microsoft.SqlServer.WMIDRTask (в Microsoft.SqlServer.WMIDRTask.dll)

Синтаксис

'Декларация
<GuidAttribute("31665067-4647-43d8-8638-C347E3E5A5C9")> _
Public NotInheritable Class WmiDataReaderTask _
    Inherits Task _
    Implements IWmiDataReaderTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist
'Применение
Dim instance As WmiDataReaderTask
[GuidAttribute("31665067-4647-43d8-8638-C347E3E5A5C9")]
public sealed class WmiDataReaderTask : Task, 
    IWmiDataReaderTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist
[GuidAttribute(L"31665067-4647-43d8-8638-C347E3E5A5C9")]
public ref class WmiDataReaderTask sealed : public Task, 
    IWmiDataReaderTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist
[<SealedAttribute>]
[<GuidAttribute("31665067-4647-43d8-8638-C347E3E5A5C9")>]
type WmiDataReaderTask =  
    class
        inherit Task
        interface IWmiDataReaderTask
        interface IDTSBreakpointSite
        interface IDTSSuspend
        interface IDTSComponentPersist
    end
public final class WmiDataReaderTask extends Task implements IWmiDataReaderTask, IDTSBreakpointSite, IDTSSuspend, IDTSComponentPersist

Замечания

The class uses a WMIConn connection to connect to a server, execute a Windows Management Instrumentation Query Language (WQL) query against it, and return the results. The WQL query can either be provided directly, or a variable or file connection can be used to dynamically provide WQL queries at execution time.

Similarly, this class can use either a file connection or variable to receive the results of the WQL query. The output type of the WQL query results can also be specified.

For more information about the features of this task, see Задача «Модуль чтения данных WMI».

Иерархия наследования

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DtsObject
    Microsoft.SqlServer.Dts.Runtime. . :: . .Task
      Microsoft.SqlServer.Dts.Tasks.WmiDataReaderTask..::..WmiDataReaderTask

Потоковая защита

Все открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность элементов экземпляров не гарантируется.