Sun WBEM SDK Developer's Guide

Invoking Methods

In CIM WorkShop, you can set input values for a parameter of a method and invoke the method. Input parameters feed set values, such as a character string, Boolean expression, or integer to a function of the method to enable the function to complete its operations. Invoking the method returns additional data in the form of output parameters.

For information about the dialog boxes you use to set parameter values and invoke methods, see Value Type Dialog Boxes and Invoke Methods Dialog Box.

How to Invoke a Method
  1. In the CIM WorkShop window.

  2. Select Action->Instances->Deep Enumeration to list the instances of the selected class and is subclasses. Select Action->Instances->Shallow Enumeration to list the instances of the selected class.

  3. Click the Methods Tab.

  4. Right-click the method to invoke and select Invoke Method.

  5. In the Input Value column of the Invoke Method dialog box, click the cell of the value you want to add.

    A Cell Value dialog box opens.

  6. Type an input value in the cell for the parameter and click OK.

  7. Click Invoke Method.

    All output values and the return value are filled in automatically.

  8. To add another input value, click and type a value in the corresponding cell of the Input Value column.

  9. When you have finished adding new input values and invoking the method, click Close.