Partager via


IPersistFileFormat.IsDirty Method

Determines whether an object has changed since being saved to its current file.

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

Syntax

'Déclaration
Function IsDirty ( _
    <OutAttribute> ByRef pfIsDirty As Integer _
) As Integer
'Utilisation
Dim instance As IPersistFileFormat
Dim pfIsDirty As Integer
Dim returnValue As Integer

returnValue = instance.IsDirty(pfIsDirty)
int IsDirty(
    out int pfIsDirty
)
int IsDirty(
    [OutAttribute] int% pfIsDirty
)
function IsDirty(
    pfIsDirty : int
) : int

Parameters

  • pfIsDirty
    Type: System.Int32%

    [out] true if the document content 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 fpstfmt.idl:

HRESULT IPersistFileFormat::IsDirty(
   [out] BOOL *pfIsDirty
);

Permissions

See Also

Reference

IPersistFileFormat Interface

IPersistFileFormat Members

Microsoft.VisualStudio.Shell.Interop Namespace