Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Runtime.​InteropServices.​ComTypes.​IEnumVARIANT

Assembly: System.Runtime.InteropServices

Manages the definition of the <see langword="IEnumVARIANT" /> interface.

Methods

public IEnumVARIANT
Clone​()
Returns An <see cref="T:System.Runtime.InteropServices.ComTypes.IEnumVARIANT" /> reference to the newly created enumerator.
Creates a new enumerator that contains the same enumeration state as the current one.
public int
Next​(int celt, object[] rgVar, nint pceltFetched)
celt The number of elements to return in <c>rgelt</c> .
rgVar When this method returns, contains a reference to the enumerated elements. This parameter is passed uninitialized.
pceltFetched When this method returns, contains a reference to the actual number of elements enumerated in <c>rgelt</c> .
Returns <see langword="S_OK" /> if the <paramref name="pceltFetched" /> parameter equals the <paramref name="celt" /> parameter; otherwise, <see langword="S_FALSE" /> .
Retrieves a specified number of items in the enumeration sequence.
public int
Reset​()
Returns An HRESULT with the value <see langword="S_OK" /> .
Resets the enumeration sequence to the beginning.
public int
Skip​(int celt)
celt The number of elements to skip in the enumeration.
Returns <see langword="S_OK" /> if the number of elements skipped equals <paramref name="celt" /> parameter; otherwise, <see langword="S_FALSE" /> .
Skips a specified number of items in the enumeration sequence.