Delen 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

'Declaration
Function IsDirty ( _
    <OutAttribute> ByRef pfIsDirty As Integer _
) As Integer
int IsDirty(
    out int pfIsDirty
)
int IsDirty(
    [OutAttribute] int% pfIsDirty
)
abstract IsDirty : 
        pfIsDirty:int byref -> int
function IsDirty(
    pfIsDirty : int
) : int

Parameters

  • pfIsDirty
    Type: Int32%

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

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

.NET Framework Security

See Also

Reference

IPersistFileFormat Interface

Microsoft.VisualStudio.Shell.Interop Namespace