Partager via


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)

Syntax

'Declaration
Public MustOverride Sub AddHierarchyForPromptAndSave ( _
    hierarchy As Object, _
    parentItemId As UInteger, _
    autoClose As Boolean _
)
public abstract void AddHierarchyForPromptAndSave(
    Object hierarchy,
    uint parentItemId,
    bool autoClose
)
public:
virtual void AddHierarchyForPromptAndSave(
    Object^ hierarchy, 
    unsigned int parentItemId, 
    bool autoClose
) abstract
abstract AddHierarchyForPromptAndSave : 
        hierarchy:Object * 
        parentItemId:uint32 * 
        autoClose:bool -> unit
public abstract function AddHierarchyForPromptAndSave(
    hierarchy : Object, 
    parentItemId : uint, 
    autoClose : boolean
)

Parameters

  • hierarchy
    Type: System.Object

    An IVsHierarchy object is expected

  • autoClose
    Type: System.Boolean

    Bool to indicate if the frame should be closed

.NET Framework Security

See Also

Reference

ContextChangingEventArgs Class

Microsoft.TeamFoundation.Client Namespace