Partager via


IVsPersistHierarchyItem.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: UInt32

    [in] Item identifier of the hierarchy item contained in VSITEMID.

  • punkDocData
    Type: IntPtr

    [in] Pointer to the IUnknown interface of the hierarchy item.

  • pfDirty
    Type: Int32%

    [out] true if the hierarchy item changed.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsPersistHierarchyItem Interface

Microsoft.VisualStudio.Shell.Interop Namespace