IVsUIShell.UpdateDocDataIsDirtyFeedback(UInt32, Int32) 方法

定义

使文档数据对象在必须更改其文档时可以同步通知环境。

public:
 int UpdateDocDataIsDirtyFeedback(System::UInt32 docCookie, int fDirty);
public:
 int UpdateDocDataIsDirtyFeedback(unsigned int docCookie, int fDirty);
int UpdateDocDataIsDirtyFeedback(unsigned int docCookie, int fDirty);
public int UpdateDocDataIsDirtyFeedback (uint docCookie, int fDirty);
abstract member UpdateDocDataIsDirtyFeedback : uint32 * int -> int
Public Function UpdateDocDataIsDirtyFeedback (docCookie As UInteger, fDirty As Integer) As Integer

参数

docCookie
UInt32

中一个抽象值,表示正在运行的文档表中的文档。

fDirty
Int32

忽略此参数的值。 将调用文档的 IsItemDirty(UInt32, IntPtr, Int32) 方法来确定文档的已更新状态。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsUIShell::UpdateDocDataIsDirtyFeedback(  
   [in] VSCOOKIE docCookie,  
   [in] BOOL fDirty  
);  

此方法使环境将 "*" 添加到窗口标题。 " * " 是环境自动添加的文档窗口标题的一部分。 文档数据对象应调用 QueryService ,以便 SID_SVsUIShell 访问此方法。

适用于