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: 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
);
.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.