cn.chenlichao.wmi4j.consts
枚举 Flags.ExecQueryFlag

java.lang.Object
  继承者 java.lang.Enum<Flags.ExecQueryFlag>
      继承者 cn.chenlichao.wmi4j.consts.Flags.ExecQueryFlag
所有已实现的接口:
Serializable, Comparable<Flags.ExecQueryFlag>
包容类:
Flags

public static enum Flags.ExecQueryFlag
extends Enum<Flags.ExecQueryFlag>

Optional values of flags parameter for SWbemServices.execQuery()


枚举常量摘要
wbemFlagBidirectional
          0(0x0): Causes WMI to retain pointers to objects of the enumeration until the client releases the enumerator.
wbemFlagForwardOnly
          32(0x20): Causes a forward-only enumerator to be returned.
wbemFlagReturnImmediately
          16(0x10): Causes the call to return immediately.
wbemFlagReturnWhenComplete
          0(0x0): Causes this call to block until the query is complete.
wbemFlagUseAmendedQualifiers
          131072(0x20000): Causes WMI to return class amendment data with the base class definition.
wbemQueryFlagPrototype
          2(0x2): Used for prototyping.
 
方法摘要
 int getValue()
           
static Flags.ExecQueryFlag valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static Flags.ExecQueryFlag[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

wbemFlagForwardOnly

public static final Flags.ExecQueryFlag wbemFlagForwardOnly
32(0x20): Causes a forward-only enumerator to be returned. Forward-only enumerators are generally much faster and use less memory than conventional enumerators, but they do not allow calls to SWbemObject.wmiClone().


wbemFlagBidirectional

public static final Flags.ExecQueryFlag wbemFlagBidirectional
0(0x0): Causes WMI to retain pointers to objects of the enumeration until the client releases the enumerator.


wbemFlagReturnImmediately

public static final Flags.ExecQueryFlag wbemFlagReturnImmediately
16(0x10): Causes the call to return immediately.


wbemFlagReturnWhenComplete

public static final Flags.ExecQueryFlag wbemFlagReturnWhenComplete
0(0x0): Causes this call to block until the query is complete. This flag calls the method in the synchronous mode.


wbemQueryFlagPrototype

public static final Flags.ExecQueryFlag wbemQueryFlagPrototype
2(0x2): Used for prototyping. This flag stops the query from happening and returns an object that looks like a typical result object.


wbemFlagUseAmendedQualifiers

public static final Flags.ExecQueryFlag wbemFlagUseAmendedQualifiers
131072(0x20000): Causes WMI to return class amendment data with the base class definition.

方法详细信息

values

public static Flags.ExecQueryFlag[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (Flags.ExecQueryFlag c : Flags.ExecQueryFlag.values())
    System.out.println(c);


valueOf

public static Flags.ExecQueryFlag valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

getValue

public int getValue()


Copyright © 2014. All rights reserved.