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.​IEnumConnections
Assembly: System.Runtime.InteropServices
Manages the definition of the <see langword="IEnumConnections" /> interface.
Methods
public
int
Next​(int celt,
CONNECTDATA[] rgelt,
nint pceltFetched)
celt
The number of <see cref="T:System.Runtime.InteropServices.CONNECTDATA" /> structures to return in <paramref name="rgelt" /> .
rgelt
When this method returns, contains a reference to the enumerated connections. This parameter is passed uninitialized.
pceltFetched
When this method returns, contains a reference to the actual number of connections enumerated in <paramref name="rgelt" /> .
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
void
Reset​()
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 the <paramref name="celt" /> parameter; otherwise, <see langword="S_FALSE" /> .
Skips a specified number of items in the enumeration sequence.