Export (0) Print
Expand All

WMI.NET Provider Extensions Attributes

.NET Framework 3.5

WMI.NET Provider Extensions let you create a WMI provider by using a declarative programming style. You use attributes to declare which elements of your program perform tasks required of a WMI provider.

The following tables group together attributes that perform related functions and include brief descriptions of these commonly-required attributes.

WMI Provider and Class Information

Attribute

Description

WmiConfigurationAttribute

Used to indicate that an assembly implements a WMI provider.

ManagementEntityAttribute

Used to indicate that a class represents a WMI class.

Properties

Attribute

Description

ManagementKeyAttribute

Used to indicate that a property is a key property for a WMI class.

ManagementProbeAttribute

Used to indicate that a property is a read-only WMI property.

ManagementConfigurationAttribute

Used to indicate that a property is a read-write WMI property.

Commit

Attribute

Description

ManagementCommitAttribute

Used to identify a method to call when changes to read-write properties are committed.

Methods

Attribute

Description

ManagementTaskAttribute

Used to identify a method as a WMI method.

Bind and Enumerate

Attribute

Description

ManagementBindAttribute

Used to identify a method that binds requests for WMI class instances to appropriately-valued instances.

ManagementEnumeratorAttribute

Used to identify a method that returns all current instances of a WMI class.

Create and Remove Instances

Attribute

Description

ManagementCreateAttribute

Used to identify a method that creates new instances.

ManagementRemoveAttribute

Used to identify a method that removes class instances.

Associations

Attribute

Description

ManagementReferenceAttribute

Used to reference WMI classes when creating an association class.

Inheritance

Attribute

Description

ManagementEntityAttribute

Used, with the external parameter, to identify an external class from which to inherit.

Abstract Attributes

Attribute

Description

ManagementMemberAttribute

All member attributes derive from this attribute.

ManagementNewInstanceAttribute

All attributes that mark methods that create instances derive from this attribute.

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation. All rights reserved.

Show:
© 2014 Microsoft