__ClassProviderRegistration class

The __ClassProviderRegistration system class registers class providers in WMI.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class __ClassProviderRegistration : __ObjectProviderRegistration
{
  datetime   CacheRefreshInterval;
  sint32     InteractionType = 0;
  __Provider REF provider;
  boolean    PerUserSchema;
  string     QuerySupportLevels[];
  string     ReferencedSetQueries[];
  string     ResultSetQueries[];
  boolean    ReSynchroniseOnNamespaceOpen;
  boolean    SuppportsBatching;
  boolean    SupportsEnumeration = FALSE;
  boolean    SupportsDelete = FALSE;
  boolean    SupportsGet = FALSE;
  boolean    SupportsPut = FALSE;
  boolean    SupportsTransactions;
  string     UnsupportedQueries[];
  uint32     Version;
};

Members

The __ClassProviderRegistration class has these types of members:

Properties

The __ClassProviderRegistration class has these properties.

CacheRefreshInterval
Data type: datetime
Access type: Read/write

Not used.

InteractionType
Data type: sint32
Access type: Read/write

Indicates whether or not the class or instance provider supplies data, or relies on WMI and the Common Information Model (CIM) repository. Pull providers support dynamic access to data, and push providers store data in the CIM repository, and rely on WMI to provide access to it. The default value is 0 (zero). This property is inherited from __ObjectProviderRegistration. For more information, see Determining Push or Pull Status.

ValueMeaning
0

Pull

Provider is a pull provider.

1

Push

Provider is a push provider.

2

PushVerify

Provider is a push-verify provider.

 

Note that PushVerify providers are not supported at this time.

PerUserSchema
Data type: boolean
Access type: Read/write

Not used.

provider
Data type: __Provider
Access type: Read/write
Qualifiers: Key

Object path to a class provider. This property is inherited from __ProviderRegistration.

QuerySupportLevels
Data type: string array
Access type: Read/write

Array of the types of provider-included support for query processing. This property is inherited from __ObjectProviderRegistration. Class providers are required to support at least one type of query. Instance providers can set QuerySupportLevels to NULL if they do not support query processing. Providers that support queries implement the IWbemServices::ExecQueryAsync method, and set this property to one or more of the following values:

"WQL:UnarySelect"
"WQL:References"
"WQL:Associators"
"WQL:V1ProviderDefined"
ReferencedSetQueries
Data type: string array
Access type: Read/write

One or more queries that describe the set of referenced classes that a class provider supports. Providers that can supply association classes must include at least one query in this property.

ResultSetQueries
Data type: string array
Access type: Read/write

One or more queries that describe the set of all classes that can be supplied by the class provider, or a superset of those classes. This property never specifies a subset of supported classes.

ReSynchroniseOnNamespaceOpen
Data type: boolean
Access type: Read/write

Not used.

SupportsDelete
Data type: boolean
Access type: Read/write

If TRUE, the provider supports data deletion. This property is inherited from __ObjectProviderRegistration.

ValueMeaning
TRUE

The provider supports class or instance deletion by implementing one of the following methods:

FALSE

The provider does not support data deletion, and returns WBEM_E_PROVIDER_NOT_CAPABLE from DeleteClassAsync or DeleteInstanceAsync.

 

SupportsEnumeration
Data type: boolean
Access type: Read/write

If TRUE, the provider supports data enumeration. This property is inherited from __ObjectProviderRegistration.

ValueMeaning
TRUE

The provider supports data enumeration by implementing one of the following methods:

FALSE

The provider does not support data enumeration, and returns WBEM_E_PROVIDER_NOT_CAPABLE from CreateClassEnumAsync or CreateInstanceEnumAsync.

 

SupportsGet
Data type: boolean
Access type: Read/write

If TRUE, the class or instance provider supports data retrieval. This property is inherited from __ObjectProviderRegistration.

ValueMeaning
TRUE

The provider supports data retrieval by implementing IWbemServices::GetObjectAsync.

FALSE

The provider does not support data retrieval, and returns WBEM_E_PROVIDER_NOT_CAPABLE from GetObjectAsync.

 

SupportsPut
Data type: boolean
Access type: Read/write

If TRUE, the class or instance provider supports data modification. This property is inherited from __ObjectProviderRegistration.

ValueMeaning
TRUE

The provider supports class or instance modification by implementing one of the following methods:

FALSE

The provider does not support data modification and returns WBEM_E_PROVIDER_NOT_CAPABLE from PutClassAsync or PutInstanceAsync.

 

SupportsTransactions
Data type: boolean
Access type: Read/write

Not used.

SuppportsBatching
Data type: boolean
Access type: Read/write

Not used.

UnsupportedQueries
Data type: string array
Access type: Read/write

One or more queries that describe the set of classes that the class provider does not support. Use this property to subtract from the set of classes implied by ResultSetQueries.

Version
Data type: uint32
Access type: Read/write

Version of this class provider.

Remarks

The __ClassProviderRegistration class is derived from __ObjectProviderRegistration, which is derived from __ProviderRegistration.

The properties inherited from __ObjectProviderRegistration indicate whether or not the class provider supports data retrieval, modification, deletion, enumeration and query processing. The InteractionType property specifies whether or not the class provider is designed as a pull or push provider. For more information, see Determining Push or Pull Status.

The __ProviderRegistration class defines the Provider property. Only administrators can register a provider by creating an instance of __Win32Provider and __ClassProviderRegistration. Only administrators can delete a provider.

Windows XP:  Users who are not administrators can register or delete a provider.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

all WMI namespaces

See also

WMI System Classes
Registering a Class Provider
Registering an Instance Provider
__Win32Provider

 

 

Show:
© 2014 Microsoft