IVsTextStorage2.GetVersionCookie 方法

获取在数据的版本 cookie。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

语法

声明
Function GetVersionCookie ( _
    <OutAttribute> ByRef pdwVersionCookie As UInteger _
) As Integer
int GetVersionCookie(
    out uint pdwVersionCookie
)
int GetVersionCookie(
    [OutAttribute] unsigned int% pdwVersionCookie
)
abstract GetVersionCookie : 
        pdwVersionCookie:uint32 byref -> int
function GetVersionCookie(
    pdwVersionCookie : uint
) : int

参数

  • pdwVersionCookie
    类型:UInt32%

    [out] 版本 cookie。

返回值

类型:Int32

备注

,在每次更改,版本 cookie 从 0 开始并提高在文本存储的数据。

此方法应提供快速测试确定文本存储内容是否已更改。 这可能导致误报 (即。 增加版本号,即使实质的更改尚未提交 (例如, “a”替换为 “a”)。

.NET Framework 安全性

请参阅

参考

IVsTextStorage2 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间