Partager via


ComUtilities.EnumerableFrom Method

Definition

Overloads

EnumerableFrom(IEnumHierarchies)

Gets a .NET-style enumerator (IEnumerable<IVsHierarchy>) from the specified Visual Studio COM enumeration interface.

EnumerableFrom(IEnumWindowFrames)

Gets a .NET-style enumerator (IEnumerable<IVsWindowFrame>) from the specified Visual Studio COM enumeration interface.

EnumerableFrom(IVsEnumGuids)

Gets a .NET-style enumerator (IEnumerable<Guid>) from the specified Visual Studio COM enumeration interface.

EnumerableFrom(IVsEnumSearchProviders)

Gets a .NET-style enumerator (IEnumerable<IVsSearchProvider>) from the specified Visual Studio COM enumeration interface.

EnumerableFrom(IVsEnumTaskItems)

Gets a .NET-style enumerator (IEnumerable<IVsTaskItem>) from the specified Visual Studio COM enumeration interface.

EnumerableFrom(IVsUICollection)

Converts a IVsUICollection to an IEnumerable<T>.

EnumerableFrom(IVsUIEnumDataSourceProperties)

Gets a .NET-style enumerator (IEnumerable<VsUIPropertyDescriptor>) from the specified Visual Studio COM enumeration interface.

EnumerableFrom(IVsUIEnumDataSourceVerbs)

Gets a .NET-style enumerator (IEnumerable<string>) from the specified Visual Studio COM enumeration interface.

EnumerableFrom(IEnumHierarchies)

Gets a .NET-style enumerator (IEnumerable<IVsHierarchy>) from the specified Visual Studio COM enumeration interface.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IEnumHierarchies ^ enumerator);
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsHierarchy> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IEnumHierarchies enumerator);
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IEnumHierarchies -> seq<Microsoft.VisualStudio.Shell.Interop.IVsHierarchy>
Public Shared Function EnumerableFrom (enumerator As IEnumHierarchies) As IEnumerable(Of IVsHierarchy)

Parameters

enumerator
IEnumHierarchies

The Visual-Studio COM enumeration (IEnumHierarchies).

Returns

The .NET-style enumerator.

Applies to

EnumerableFrom(IEnumWindowFrames)

Gets a .NET-style enumerator (IEnumerable<IVsWindowFrame>) from the specified Visual Studio COM enumeration interface.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IEnumWindowFrames ^ enumerator);
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IEnumWindowFrames enumerator);
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IEnumWindowFrames -> seq<Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame>
Public Shared Function EnumerableFrom (enumerator As IEnumWindowFrames) As IEnumerable(Of IVsWindowFrame)

Parameters

enumerator
IEnumWindowFrames

The Visual-Studio COM enumeration (IEnumWindowFrames).

Returns

The .NET-style enumerator.

Applies to

EnumerableFrom(IVsEnumGuids)

Gets a .NET-style enumerator (IEnumerable<Guid>) from the specified Visual Studio COM enumeration interface.

public:
 static System::Collections::Generic::IEnumerable<Guid> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IVsEnumGuids ^ enumerator);
public static System.Collections.Generic.IEnumerable<Guid> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IVsEnumGuids enumerator);
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IVsEnumGuids -> seq<Guid>
Public Shared Function EnumerableFrom (enumerator As IVsEnumGuids) As IEnumerable(Of Guid)

Parameters

enumerator
IVsEnumGuids

The Visual-Studio COM enumeration (IVsEnumGuids).

Returns

The .NET-style enumerator.

Applies to

EnumerableFrom(IVsEnumSearchProviders)

Gets a .NET-style enumerator (IEnumerable<IVsSearchProvider>) from the specified Visual Studio COM enumeration interface.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::Interop::IVsSearchProvider ^> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IVsEnumSearchProviders ^ enumerator);
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsSearchProvider> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IVsEnumSearchProviders enumerator);
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IVsEnumSearchProviders -> seq<Microsoft.VisualStudio.Shell.Interop.IVsSearchProvider>
Public Shared Function EnumerableFrom (enumerator As IVsEnumSearchProviders) As IEnumerable(Of IVsSearchProvider)

Parameters

enumerator
IVsEnumSearchProviders

The Visual-Studio COM enumeration (IVsEnumSearchProviders).

Returns

The .NET-style enumerator.

Applies to

EnumerableFrom(IVsEnumTaskItems)

Gets a .NET-style enumerator (IEnumerable<IVsTaskItem>) from the specified Visual Studio COM enumeration interface.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IVsEnumTaskItems ^ enumerator);
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsTaskItem> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IVsEnumTaskItems enumerator);
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IVsEnumTaskItems -> seq<Microsoft.VisualStudio.Shell.Interop.IVsTaskItem>
Public Shared Function EnumerableFrom (enumerator As IVsEnumTaskItems) As IEnumerable(Of IVsTaskItem)

Parameters

enumerator
IVsEnumTaskItems

The Visual-Studio COM enumeration (IVsEnumTaskItems).

Returns

The .NET-style enumerator.

Applies to

EnumerableFrom(IVsUICollection)

Converts a IVsUICollection to an IEnumerable<T>.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource ^> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IVsUICollection ^ collection);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Shell.ComUtilities+<EnumerableFrom>d__9))]
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IVsUICollection collection);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Shell.ComUtilities+<EnumerableFrom>d__9))>]
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IVsUICollection -> seq<Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource>
Public Shared Iterator Function EnumerableFrom (collection As IVsUICollection) As IEnumerable(Of IVsUIDataSource)

Parameters

collection
IVsUICollection

The collection

Returns

Returns the IEnumerable.

Attributes

Applies to

EnumerableFrom(IVsUIEnumDataSourceProperties)

Gets a .NET-style enumerator (IEnumerable<VsUIPropertyDescriptor>) from the specified Visual Studio COM enumeration interface.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::Interop::VsUIPropertyDescriptor> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IVsUIEnumDataSourceProperties ^ enumerator);
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.VsUIPropertyDescriptor> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IVsUIEnumDataSourceProperties enumerator);
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IVsUIEnumDataSourceProperties -> seq<Microsoft.VisualStudio.Shell.Interop.VsUIPropertyDescriptor>
Public Shared Function EnumerableFrom (enumerator As IVsUIEnumDataSourceProperties) As IEnumerable(Of VsUIPropertyDescriptor)

Parameters

enumerator
IVsUIEnumDataSourceProperties

The Visual-Studio COM enumeration (IVsUIEnumDataSourceProperties).

Returns

The .NET-style enumerator.

Applies to

EnumerableFrom(IVsUIEnumDataSourceVerbs)

Gets a .NET-style enumerator (IEnumerable<string>) from the specified Visual Studio COM enumeration interface.

public:
 static System::Collections::Generic::IEnumerable<System::String ^> ^ EnumerableFrom(Microsoft::VisualStudio::Shell::Interop::IVsUIEnumDataSourceVerbs ^ enumerator);
public static System.Collections.Generic.IEnumerable<string> EnumerableFrom (Microsoft.VisualStudio.Shell.Interop.IVsUIEnumDataSourceVerbs enumerator);
static member EnumerableFrom : Microsoft.VisualStudio.Shell.Interop.IVsUIEnumDataSourceVerbs -> seq<string>
Public Shared Function EnumerableFrom (enumerator As IVsUIEnumDataSourceVerbs) As IEnumerable(Of String)

Parameters

enumerator
IVsUIEnumDataSourceVerbs

The Visual-Studio COM enumeration (IVsUIEnumDataSourceVerbs).

Returns

The .NET-style enumerator.

Applies to