Share via


IVsExpansionEnumeration.Reset Method

Resets the enumeration to the beginning.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Function Reset As Integer
int Reset()
int Reset()
abstract Reset : unit -> int
function Reset() : int

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Once reset, the next call to the Next method returns the first item in the enumeration. This method does not need to be called when the enumeration is first obtained.

COM Signature

From textmgr2.idl:

HRESULT IVsExpansionEnumeration::Reset();

.NET Framework Security

See Also

Reference

IVsExpansionEnumeration Interface

Microsoft.VisualStudio.TextManager.Interop Namespace