获取在数据的版本 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。