调用,在属性在运行后的文档已更改文档表。
命名空间: Microsoft.VisualStudio.Shell.Design.Serialization
程序集: Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)
语法
声明
Private Function OnAfterAttributeChangeEx ( _
docCookie As UInteger, _
attribs As UInteger, _
pHierOld As IVsHierarchy, _
itemidOld As UInteger, _
pszMkDocumentOld As String, _
pHierNew As IVsHierarchy, _
itemidNew As UInteger, _
pszMkDocumentNew As String _
) As Integer Implements IVsRunningDocTableEvents2.OnAfterAttributeChangeEx
int IVsRunningDocTableEvents2.OnAfterAttributeChangeEx(
uint docCookie,
uint attribs,
IVsHierarchy pHierOld,
uint itemidOld,
string pszMkDocumentOld,
IVsHierarchy pHierNew,
uint itemidNew,
string pszMkDocumentNew
)
参数
- docCookie
类型:System.UInt32
文档的标识符在运行的文档表。
- attribs
类型:System.UInt32
与已更改的属性对应的__VSRDTATTRIB 值。
- pHierOld
类型:Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
以前拥有 " 文档 " 节点的 IVsHierarchy 接口。
- itemidOld
类型:System.UInt32
在该标识符
- pszMkDocumentOld
类型:System.String
文档前面的名称。
- pHierNew
类型:Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
现在拥有 " 文档 " 节点的 IVsHierarchy 接口。
- itemidNew
类型:System.UInt32
新项 ID
- pszMkDocumentNew
类型:System.String
文档的新名称。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
实现
备注
此方法保存对该缓存项标识符或层次结构中的所有更改。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。