This documentation is archived and is not being maintained.

ContextChangingEventArgs::AddHierarchyForPromptAndSave Method

When inside Visual Studio, IVsHierarchy items can be prompted for saving before it continues with switching the context.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

public:
virtual void AddHierarchyForPromptAndSave(
	Object^ hierarchy, 
	unsigned int parentItemId, 
	bool autoClose
) abstract

Parameters

hierarchy
Type: System::Object

An IVsHierarchy object is expected

parentItemId
Type: System::UInt32

The parent item

autoClose
Type: System::Boolean

Bool to indicate if the frame should be closed

Show: