IVsPersistHierarchyItem2.IsItemDirty Method (UInt32, IntPtr, Int32%)
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
'Usage
Dim instance As IVsPersistHierarchyItem2
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.
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
- 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
IVsPersistHierarchyItem2 Interface