Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.com   Previous This
Package
Next

 


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

Methods

Clone

public IEnumVariant Clone();

Clones the IEnumVariant object.

Return Value:

Returns an IEnumVariant object identical to the current object.

Next

public void Next(int celt, Variant[] rgvar, int[] pceltFetched);

Retrieves elements from the enumeration sequence.

Return Value:

No return value.

ParameterDescription
celt The number of elements to retrieve.
rgvar The elements retrieved.
pceltFetched The number of elements retrieved.

Reset

public void Reset();

Resets the index to the start of the enumeration.

Return Value:

No return value.

Skip

public void Skip(int celt);

Skips elements in the enumeration.

Return Value:

No return value.

ParameterDescription
celt The number of elements to skip.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.