Freigeben über


SharedProjectUtilities.EnumOwningProjectsOfSharedAssets(IVsHierarchy) Method

Definition

Enumerates all the Shared Projects that own and manage the shared assets being imported by the given project.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^> ^ EnumOwningProjectsOfSharedAssets(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Shell.SharedProjectUtilities+<EnumOwningProjectsOfSharedAssets>d__4))]
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsHierarchy> EnumOwningProjectsOfSharedAssets (this Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Shell.SharedProjectUtilities+<EnumOwningProjectsOfSharedAssets>d__4))>]
static member EnumOwningProjectsOfSharedAssets : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy -> seq<Microsoft.VisualStudio.Shell.Interop.IVsHierarchy>
<Extension()>
Public Iterator Function EnumOwningProjectsOfSharedAssets (hierarchy As IVsHierarchy) As IEnumerable(Of IVsHierarchy)

Parameters

hierarchy
IVsHierarchy

The project that imports the shared assets.

Returns

An enumerable of hierarchies of the Shared Projects that own and manage the shared assets being imported by the given project.

Attributes

Remarks

The shared assets owned by a Shared Project could be imported by multiple projects. A project could import shared assets from multiple Shared Projects as well.

Applies to