Sdílet prostřednictvím


IVsUserContext.IsDirty(Int32) Method

Definition

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

public:
 int IsDirty([Runtime::InteropServices::Out] int % pfDirty);
int IsDirty([Runtime::InteropServices::Out] int & pfDirty);
public int IsDirty (out int pfDirty);
abstract member IsDirty : int -> int
Public Function IsDirty (ByRef pfDirty As Integer) As Integer

Parameters

pfDirty
Int32

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

Returns

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.

Applies to