VsEnumerableEx<TComEnumerator,TComEnumerated> VsEnumerableEx<TComEnumerator,TComEnumerated> VsEnumerableEx<TComEnumerator,TComEnumerated> VsEnumerableEx<TComEnumerator,TComEnumerated> 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

Constructors

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

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

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

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

Methods

Clone(TComEnumerator) Clone(TComEnumerator) Clone(TComEnumerator) Clone(TComEnumerator) 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) CreateEnumerator(IEnumerable<TEnumerated>, Int32) CreateEnumerator(IEnumerable<TEnumerated>, Int32) CreateEnumerator(IEnumerable<TEnumerated>, Int32) 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) GetElement(TComEnumerated, TComEnumerated) GetElement(TComEnumerated, TComEnumerated) GetElement(TComEnumerated, TComEnumerated) 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) GetElement(TEnumerated, TComEnumerated) GetElement(TEnumerated, TComEnumerated) GetElement(TEnumerated, 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) Next(UInt32, TComEnumerated[], UInt32) Next(UInt32, TComEnumerated[], UInt32) Next(UInt32, TComEnumerated[], UInt32) 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[]) Next(UInt32, TComEnumerated[], UInt32[]) Next(UInt32, TComEnumerated[], UInt32[]) Next(UInt32, TComEnumerated[], UInt32[]) 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() Reset() Reset() Reset() Reset()

Resets the enumeration sequence back to the beginning.

Skip(UInt32) Skip(UInt32) Skip(UInt32) Skip(UInt32) Skip(UInt32)

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

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

Properties

IsEnumerating IsEnumerating IsEnumerating IsEnumerating 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>)

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to