Task - Add a Property or Method to a Class
Add
a
property
The following example adds a new string property Organization to the
experimental CIM_CRToolService class.

- To add a new property, press Add in the Properties sub-folder
tab.
Enter Organization in the Name field and select string from the Data
Type
drop down list. Leave the Default Value field blank. The window should
now show

- Press OK to add the new property and to return the CIM Class
Change folder tab. To see the new property, you will need to scroll
down to the end of the Properties for Class window and the Resulting
MOF field. The new property is highlighted in blue in
the Resulting MOF field.

Add a method
The following example adds a new method ApplyCR
to CIM_CRToolService.
The method has no parameters.
- Fill in the fields in the Heading, Body, CIM Class Change folder
tabs as described in Create a new Class
- Select the Methods sub-folder tab. The extrinsic methods
inherited from CIM_Service are listed.
- Click on Add to display the Add Method window.
- Enter ApplyCR for the Method Name
- Select the Return Type to be uint32
- Click on OK
The CIM Class Change folder tab now shows the ApplyCR listed in the
Methods for Class grouping. The Resulting MOF field now shows the new
ApplyCR method.

Modify a Method Qualifier
To modify the Description qualifier,
- Select the Methods sub-folder tab. All inherited and locally
defined methods are listed.
- Select ApplyCR.
- In the Qualifiers for Method grouping, select Description
- In the Value for Qualifier grouping, click on Modify to show a
Modify Qualifier window.
- Enter "Method for applying a Change Request" in the Value field

- Click on OK to return to the CIM Class Change folder tab. The
Resulting MOF field now shows the modiffied Description qualifier for
the ApplyCR method.

Copyright © 2016 WBEM Solutions,
Inc.
All Rights Reserved.