SharedProjectUtilities.TryGetItemInSharedAssetsProject Method

Definition

Gets the item id of an imported item in the Shared Project hierarchy.

public:
 static bool TryGetItemInSharedAssetsProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, System::UInt32 itemId, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % sharedAssetsProject, [Runtime::InteropServices::Out] System::UInt32 % itemIdInSharedAssetsProject);
public static bool TryGetItemInSharedAssetsProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy, uint itemId, out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy sharedAssetsProject, out uint itemIdInSharedAssetsProject);
static member TryGetItemInSharedAssetsProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * IVsHierarchy * uint32 -> bool
Public Function TryGetItemInSharedAssetsProject (hierarchy As IVsHierarchy, itemId As UInteger, ByRef sharedAssetsProject As IVsHierarchy, ByRef itemIdInSharedAssetsProject As UInteger) As Boolean

Parameters

hierarchy
IVsHierarchy

The project that is importing the shared assets that the Shared Project owns.

itemId
UInt32

The item id of the imported shared item in the importing project.

sharedAssetsProject
IVsHierarchy

The Shared Project hierarchy.

itemIdInSharedAssetsProject
UInt32

The item id in the Shared Project hierarchy.

Returns

true if found, the Shared Project hierarchy and the item id in that shared hierarchy; otherwise, false.

Applies to