Partager via


IVsUserContext.IsDirty Method

Determines whether the user context has changed in the context or subcontext bag.

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

Syntax

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

Parameters

  • pfDirty
    Type: Int32%

    [out, retval] If true, then the user context has changed. If false, then the user context is unchanged.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From context.idl:

HRESULT IVsUserContext::IsDirty(
   [out, retval] BOOL * pfDirty
);

Use the IVsUserContext.IsDirty method to determine whether the user context has changed and the SetDirty method to flag that the contents of the context bag have changed.

.NET Framework Security

See Also

Reference

IVsUserContext Interface

Microsoft.VisualStudio.Shell.Interop Namespace