The managed SMS Provider library is a .NET Framework library that wraps the System.Management classes and provides a Configuration Manager 2007-centric object model. It also provides a wrapper for accessing the Configuration Manager site control file.
The library can be used outside of any code relating to the Configuration Manager console .NET Framework library, but is built on the same underlying architecture.
For information about using managed code with the Configuration Manager 2007 client, see About Configuration Manager WMI Programming.
Configuration Manager Classes and Interfaces
The primary classes and interfaces for use with the managed SMS Provider are the following:
The class WqlConnectionManager provides access to the Configuration Manager Windows Management Instrumentation (WMI) provider.
It is an implementation of the abstract base class Microsoft.ConfigurationManagement.ManagementProvider.ConnectionManagerBase that defines connections throughout the managed Configuration Manager 2007 libraries.
It is used to connect to the SMS Provider and query, or create, Configuration Manager 2007 object instances. The following tasks demonstrate the basic usage of WqlConnectionManager.
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject is an interface that all result sets and objects expose. Through it, you can read, modify, delete, call methods on, and otherwise manipulate Configuration Manager objects. You typically get an IResultObject whenever you create an object or as a result of a query.
The following tasks demonstrate the basic use of IResultObject:
QueryProcesor provides support for both synchronous and asynchronous queries against the SMS Provider. In asynchronous queries, Microsoft.ConfigurationManagement.ManagementProvider.SmsBackgroundWorker is used to provide thread support query results. The following tasks demonstrate queries:
Microsoft.ConfigurationManagement.ManagementProvider.IQueryPropertyItem is a single property of the result object, supports data binding and get/set properties.
The following tasks demonstrate the use of IQueryPropertyItem:
The assemblies that are required for using managed SMS Provider are:
The WMI implementation of the managed Configuration Manager libraries is provided by adminui.wqlqueryengine.
Send comments about this topic to Microsoft.