IVsUserContext.SetDirty Method

Flags the context or subcontext bag for update by the Dynamic Help window.

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

Syntax

声明
Function SetDirty ( _
    fDirty As Integer _
) As Integer
用法
Dim instance As IVsUserContext
Dim fDirty As Integer
Dim returnValue As Integer

returnValue = instance.SetDirty(fDirty)
int SetDirty(
    int fDirty
)
int SetDirty(
    [InAttribute] int fDirty
)
abstract SetDirty : 
        fDirty:int -> int 
function SetDirty(
    fDirty : int
) : int

Parameters

  • fDirty
    Type: System.Int32
    [in] If true, then the Dynamic Help window is informed that the user context has changed. If false, then the Dynamic Help window is informed that the user context has not 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 context.idl:

HRESULT IVsUserContext::SetDirty(
   [in] BOOL fDirty
);

Use the IsDirty method to determine whether the user context has changed and the IVsUserContext::SetDirty method to flag that the contents of the context bag have changed. At idle time, the Dynamic Help window updates its context from all context bags in the active selection that are identified as having changed.

备注

IVsUserContext.SetDirty is automatically called whenever attributes and keywords are added or removed from the context or subcontext bag.

.NET Framework Security

See Also

Reference

IVsUserContext Interface

IVsUserContext Members

Microsoft.VisualStudio.Shell.Interop Namespace