ManagementBaseObject::Item Property (String^)
Gets access to property values through [] notation. This property is the indexer for the ManagementBaseObject class. You can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.
Assembly: System.Management (in System.Management.dll)
public: property Object^ default[ String^ propertyName ] { Object^ get(String^ propertyName); void set(String^ propertyName, Object^ value); }
Parameters
- propertyName
-
Type:
System::String^
The name of the property of interest.
Property Value
Type: System::Object^Returns an Object value that contains the management object for a specific class property.
An object instance that contains the value of the requested property.
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
The following example shows how to initialize a ManagementClass variable with a ManagementClass constructor and then get all the instances of a WMI class.
Available since 1.1