Compartir a través de


SharedProjectUtilities.SetHierarchyProperty Method

Definition

Sets the hierarchy property with the convenience to jump to the Shared Project hierarchy to set the property for the shared item.

public:
 static int SetHierarchyProperty(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, System::UInt32 itemId, int propId, System::Object ^ value);
public:
 static int SetHierarchyProperty(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, unsigned int itemId, int propId, Platform::Object ^ value);
 static int SetHierarchyProperty(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & hierarchy, unsigned int itemId, int propId, winrt::Windows::Foundation::IInspectable const & value);
public static int SetHierarchyProperty (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy, uint itemId, int propId, object value);
static member SetHierarchyProperty : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * int * obj -> int
Public Function SetHierarchyProperty (hierarchy As IVsHierarchy, itemId As UInteger, propId As Integer, value As Object) As Integer

Parameters

hierarchy
IVsHierarchy

The project hierarchy.

itemId
UInt32

The item id.

propId
Int32

The property id.

value
Object

The property value.

Returns

The HRESULT.

Remarks

For the shared item, this method will find the corresponding item in the Shared Project, and then set property on the item in the Shared Project.

Applies to