SharedProjectUtilities::TryGetItemInSharedAssetsProject Method (IVsHierarchy^, UInt32, IVsHierarchy^, UInt32)

Visual Studio 2015
 

Gets the item ID of the in the Shared Assets Project hierarchy.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static bool TryGetItemInSharedAssetsProject(
	IVsHierarchy^ hierarchy,
	unsigned int itemId,
	[OutAttribute] IVsHierarchy^% sharedAssetsProject,
	[OutAttribute] unsigned int% itemIdInSharedAssetsProject
)

Parameters

hierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The project that imports the shared assets that the Shared Assets Project owns.

itemId
Type: System::UInt32

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

sharedAssetsProject
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[out] The Shared Assets Project hierarchy.

itemIdInSharedAssetsProject
Type: System::UInt32

[out] The item ID in the Shared Assets Project hierarchy.

Return Value

Type: System::Boolean

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

Return to top
Show: