Interface IEnumVariant
public interface IEnumVariant extends IUnknown
{
// Methods
public IEnumVariant Clone();
public void Next(int celt, Variant[] rgvar, int[] pceltFetched);
public void Reset();
public void Skip(int celt);
}
This interface provides methods for enumerating a collection of variants. You do not need to know the specific type (or types) of elements in the collection. This interface wraps the Component Object Model (COM) interface, IEnumVARIANT.
IUnknown
|
+--IEnumVariant
public IEnumVariant Clone();
Clones the IEnumVariant object.
Return Value:
Returns an IEnumVariant object identical to the current object.
public void Next(int celt, Variant[] rgvar, int[] pceltFetched);
Retrieves elements from the enumeration sequence.
Return Value:
No return value.
Parameter | Description |
celt
| The number of elements to retrieve.
|
rgvar
| The elements retrieved.
|
pceltFetched
| The number of elements retrieved.
|
public void Reset();
Resets the index to the start of the enumeration.
Return Value:
No return value.
public void Skip(int celt);
Skips elements in the enumeration.
Return Value:
No return value.
Parameter | Description |
celt
| The number of elements to skip.
|