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
'Declaración
Function IsItemDirty ( _
itemid As UInteger, _
punkDocData As IntPtr, _
<OutAttribute> ByRef pfDirty As Integer _
) As Integer
'Uso
Dim instance As IVsPersistHierarchyItem
Dim itemid As UInteger
Dim punkDocData As IntPtr
Dim pfDirty As Integer
Dim returnValue As Integer
returnValue = instance.IsItemDirty(itemid, _
punkDocData, pfDirty)
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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsPersistHierarchyItem::IsItemDirty(
[in] VSITEMID itemid,
[in] IUnknown *punkDocData,
[out] BOOL *pfDirty
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsPersistHierarchyItem Interface