共用方式為


IVsUserContext.Update Method

Definition

Updates user context.

public:
 int Update();
public:
 int Update();
int Update();
public int Update ();
abstract member Update : unit -> int
Public Function Update () As Integer

Returns

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

Remarks

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

Applies to