SWbemMethod object

You can use the properties of the SWbemMethod object to inspect a single method definition of a WMI object. This object cannot be created by the VBScript CreateObject call.

This object can be used to inspect the definitions of methods. To invoke the methods, you should use either direct access (see Manipulating Class and Instance Information) on an SWbemObject (which is the recommended mechanism) object, or the SWbemServices.ExecMethod call.

Note

In this version of the API, write access to method information is not supported. If you want to define methods or modify existing method definitions, you can define the method changes in a MOF file and submit the changes using the MOF Compiler. Alternatively, use the COM API for WMI.

Members

The SWbemMethod object has these types of members:

Properties

The SWbemMethod object has these properties.

Property Access type Description
InParameters
Read-only
An SWbemObject object whose properties define the input parameters for this method.
Name
Read-only
Name of the method.
Origin
Read-only
Originating class of the method.
OutParameters
Read-only
An SWbemObject object whose properties define the out parameters and return type of this method.
Qualifiers_
Read-only
An SWbemQualifierSet object that contains the qualifiers for this method.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Wbemdisp.h
Type library
Wbemdisp.tlb
DLL
Wbemdisp.dll
CLSID
CLSID_SWbemMethod
IID
IID_ISWbemMethod

See also

Scripting API Objects