Share via


IVsPersistHierarchyItem2.IsItemDirty Method

Determines whether the hierarchy item changed.

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

Syntax

'Declaration
Function IsItemDirty ( _
    itemid As UInteger, _
    punkDocData As IntPtr, _
    <OutAttribute> ByRef pfDirty As Integer _
) As Integer
int IsItemDirty(
    uint itemid,
    IntPtr punkDocData,
    out int pfDirty
)
int IsItemDirty(
    [InAttribute] unsigned int itemid, 
    [InAttribute] IntPtr punkDocData, 
    [OutAttribute] int% pfDirty
)
abstract IsItemDirty : 
        itemid:uint32 * 
        punkDocData:IntPtr * 
        pfDirty:int byref -> int 
function IsItemDirty(
    itemid : uint, 
    punkDocData : IntPtr, 
    pfDirty : int
) : int

Parameters

  • itemid
    Type: System.UInt32
    [in] Item identifier of the hierarchy item contained in VSITEMID.
  • punkDocData
    Type: System.IntPtr
    [in] Pointer to the IUnknown interface of the hierarchy item.
  • pfDirty
    Type: System.Int32%
    [out] true if the hierarchy item changed.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsPersistHierarchyItem.IsItemDirty(UInt32, IntPtr, Int32%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistHierarchyItem2::IsItemDirty(
   [in] VSITEMID itemid,
   [in] IUnknown *punkDocData,
   [out] BOOL *pfDirty
);

.NET Framework Security

See Also

Reference

IVsPersistHierarchyItem2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace