다음을 통해 공유


VsEnumerableEx<TComEnumerator,TComEnumerated> Class

Definition

Base class for VS-style enumerators using Dev11 and later enumerator interfaces that don't use PreserveSig

generic <typename TComEnumerator, typename TComEnumerated>
public ref class VsEnumerableEx abstract : Microsoft::VisualStudio::Shell::VsEnumerable<TComEnumerator, TComEnumerated>
template <typename TComEnumerator, typename TComEnumerated>
[Windows::Foundation::Metadata::WebHostHidden]
class VsEnumerableEx abstract : Microsoft::VisualStudio::Shell::VsEnumerable<TComEnumerator, TComEnumerated>
public abstract class VsEnumerableEx<TComEnumerator,TComEnumerated> : Microsoft.VisualStudio.Shell.VsEnumerable<TComEnumerator,TComEnumerated>
type VsEnumerableEx<'ComEnumerator, 'ComEnumerated> = class
    inherit VsEnumerable<'ComEnumerator, 'ComEnumerated>
Public MustInherit Class VsEnumerableEx(Of TComEnumerator, TComEnumerated)
Inherits VsEnumerable(Of TComEnumerator, TComEnumerated)

Type Parameters

TComEnumerator

COM enumerator type (e.g. IVsEnumWindowSearchOptions)

TComEnumerated

Type enumerated by TComEnumerator (e.g. IVsWindowSearchOption)

Inheritance
VsEnumerable<TComEnumerator,TComEnumerated,TComEnumerated>
VsEnumerableEx<TComEnumerator,TComEnumerated>

Constructors

VsEnumerableEx<TComEnumerator,TComEnumerated>(IEnumerable<TComEnumerated>, Int32)

Initializes a new instance of the VsEnumerableEx<TComEnumerator,TComEnumerated> class.

VsEnumerableEx<TComEnumerator,TComEnumerated>(IEnumerable<TComEnumerated>)

Initializes a new instance of the VsEnumerableEx<TComEnumerator,TComEnumerated> class.

Properties

IsEnumerating

Gets a Boolean value that indicates whether the enumerator is currently enumerating. If true, the enumerator is enumerating.

(Inherited from VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>)

Methods

Clone(TComEnumerator)

Creates a copy of the enumerator and all its descendants. The returned enumerator contains the same enumeration state as the current one.

CreateEnumerator(IEnumerable<TEnumerated>, Int32)

Create a new instance of derived class that is the COM-enumerator over the enumerated collection, starting from the specified enumerator position. Derived classes need to implement the following pattern:

  • create a private constructor with similar parameters as this function, calling the protected constructor in this base class with the same signature (collection/enumeratorPosition)
  • override the CreateEnumerator function and call the derived class' constructor with the 2 parameters
(Inherited from VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>)
GetElement(TComEnumerated, TComEnumerated)

Converts an element in the enumerated input collection of type TEnumerated to a TComEnumerated element to be returned by the Visual Studio-style enumerator.

(Inherited from VsEnumerable<TComEnumerator,TComEnumerated>)
GetElement(TEnumerated, TComEnumerated)

Converts an element in the enumerated input collection of type TEnumerated to a TComEnumerated element to be returned by the VS-style enumerator. (e.g. converts a UIDataSourceVerb to the COM-enumerated type 'string' by selecting the verb's name)

(Inherited from VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>)
Next(UInt32, TComEnumerated[], UInt32)

Gets one or more elements starting at the current position in an enumeration. This method advances the current position in the enumeration by celt elements, so that subsequent calls return the subsequent elements.

(Inherited from VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>)
Next(UInt32, TComEnumerated[], UInt32[])

Gets one or more elements starting at the current position in an enumeration. This method advances the current position in the enumeration by celt elements, so that subsequent calls return the subsequent elements.

(Inherited from VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>)
Reset()

Resets the enumeration sequence back to the beginning.

Skip(UInt32)

Moves the current position in an enumeration ahead by a specified number of elements.

(Inherited from VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>)

Applies to