cn.chenlichao.wmi4j
类 SWbemMethod

java.lang.Object
  继承者 cn.chenlichao.wmi4j.SWbemMethod

public class SWbemMethod
extends Object

You can use the properties of the SWbemMethod object to inspect a single method definition of a WMI object.

This object can be used to inspect the definitions of methods. To invoke the methods, you should use either direct access 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.

Created by chenlichao on 14-7-26.


方法摘要
 SWbemObject getInParameters()
          Get an SWbemObject object whose properties define the input parameters for this method.
 String getName()
          Return a string that describes the name of this method.
 String getOrigin()
          Retrieves the name of the WMI class in which this method was introduced.
 SWbemObject getOutParameters()
          Get an SWbemObject object whose properties define the out parameters and return type of this method.
 SWbemQualifierSet getQualifiers()
          Returns an SWbemQualifierSet object that is a collection of qualifiers for this WMI method.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getInParameters

public SWbemObject getInParameters()
                            throws WMIException
Get an SWbemObject object whose properties define the input parameters for this method. This property is read-only. Note that any changes that are made to this object are not reflected in the underlying method definition.

返回:
An SWbemObject object whose properties define the input parameters for this method.
抛出:
WMIException

getName

public String getName()
               throws WMIException
Return a string that describes the name of this method. This property is read-only.

返回:
A string that describes the name of this method.
抛出:
WMIException

getOrigin

public String getOrigin()
                 throws WMIException
Retrieves the name of the WMI class in which this method was introduced. For classes with deep inheritance hierarchies, it is often desirable to know which methods were declared in which classes. If the method is local (see SWbemQualifier.isLocal()), this value is the same as the owning class. This property is read-only.

返回:
The name of the WMI class in which this method was introduced.
抛出:
WMIException

getOutParameters

public SWbemObject getOutParameters()
                             throws WMIException
Get an SWbemObject object whose properties define the out parameters and return type of this method. This property is read-only.

返回:
An SWbemObject object whose properties define the out parameters and return type of this method.
抛出:
WMIException

getQualifiers

public SWbemQualifierSet getQualifiers()
                                throws WMIException
Returns an SWbemQualifierSet object that is a collection of qualifiers for this WMI method. This property is read-only.

返回:
An SWbemQualifierSet object that is a collection of qualifiers for this WMI method.
抛出:
WMIException


Copyright © 2014. All rights reserved.