Freigeben über


IVsPersistHierarchyItem2 Interface

Provides persistence to hierarchy items.

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

Syntax

'Declaration
<GuidAttribute("5A494367-DF56-4062-8EDA-54E2C1FF42BC")> _
<InterfaceTypeAttribute()> _
Public Interface IVsPersistHierarchyItem2 _
    Inherits IVsPersistHierarchyItem
[GuidAttribute("5A494367-DF56-4062-8EDA-54E2C1FF42BC")]
[InterfaceTypeAttribute()]
public interface IVsPersistHierarchyItem2 : IVsPersistHierarchyItem
[GuidAttribute(L"5A494367-DF56-4062-8EDA-54E2C1FF42BC")]
[InterfaceTypeAttribute()]
public interface class IVsPersistHierarchyItem2 : IVsPersistHierarchyItem
[<GuidAttribute("5A494367-DF56-4062-8EDA-54E2C1FF42BC")>]
[<InterfaceTypeAttribute()>]
type IVsPersistHierarchyItem2 =  
    interface 
        interface IVsPersistHierarchyItem 
    end
public interface IVsPersistHierarchyItem2 extends IVsPersistHierarchyItem

The IVsPersistHierarchyItem2 type exposes the following members.

Methods

  Name Description
Public method IgnoreItemFileChanges Flag indicating that changes to a file can be ignored when item is saved or reloaded.
Public method IsItemDirty Determines whether the hierarchy item changed.
Public method IsItemReloadable Determines whether a project item is reloadable before calling ReloadItem.
Public method ReloadItem Called to reload project item.
Public method SaveItem Saves the hierarchy item to disk.

Top

Remarks

Notes to Implementers

Implemented by Hierarchies that want to persist their items.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace