Top Description Fields Methods
com.sun.jna.platform.win32.COM

public Interface IEnumVariant

extends IUnknown
Known Direct Implementers
com.sun.jna.platform.win32.COM.EnumVariant
Imports
com.sun.jna.platform.win32.Variant.VARIANT

Provides a method for enumerating a collection of variants, including heterogeneous collections of objects and intrinsic types. Callers of this interface do not need to know the specific type (or types) of the elements in the collection.

Field Summary

Inherited from com.sun.jna.platform.win32.COM.IUnknown:
IID_IUNKNOWN

Method Summary

Modifier and TypeMethod and Description
public IEnumVariant

Returns:

clone of the backing enumeration
Clone
()

Creates a copy of the current state of enumeration.

public Variant.VARIANT[]

Returns:

array of VARIANTs
Next
(int
maximum number of elements to retrieve
count
)

Retrieves the specified items in the enumeration sequence.

public void
Reset()

Resets the enumeration sequence to the beginning.

public void
Skip(int
elements to skip
count
)

Attempts to skip over the next celt elements in the enumeration sequence.

Inherited from com.sun.jna.platform.win32.COM.IUnknown:
AddRefQueryInterfaceRelease

Method Detail

Cloneback to summary
public IEnumVariant Clone()

Creates a copy of the current state of enumeration.

Returns:IEnumVariant

clone of the backing enumeration

Nextback to summary
public Variant.VARIANT[] Next(int count)

Retrieves the specified items in the enumeration sequence.

Count is the upper limit and less values can be retrieved.

Parameters
count:int

maximum number of elements to retrieve

Returns:Variant.VARIANT[]

array of VARIANTs

Resetback to summary
public void Reset()

Resets the enumeration sequence to the beginning.

Skipback to summary
public void Skip(int count)

Attempts to skip over the next celt elements in the enumeration sequence.

Parameters
count:int

elements to skip