Skip to content

Latest commit

 

History

History
84 lines (49 loc) · 3.89 KB

swbemmethod.md

File metadata and controls

84 lines (49 loc) · 3.89 KB
description ms.assetid ms.tgt_platform title ms.topic ms.date topic_type api_name api_type api_location
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.
461d5c41-4930-40cf-96e2-bc8cae335b60
multiple
SWbemMethod object (Wbemdisp.h)
reference
05/31/2018
APIRef
kbSyntax
SWbemMethod
ISWbemMethod
COM
Wbemdisp.dll

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