IPersistFileCheckSum 接口

计算关联的文本缓冲区的文件所表示的检查总和。

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

语法

声明
<InterfaceTypeAttribute()> _
<GuidAttribute("35355DA7-3EEA-452E-89F3-68344278F806")> _
Public Interface IPersistFileCheckSum
[InterfaceTypeAttribute()]
[GuidAttribute("35355DA7-3EEA-452E-89F3-68344278F806")]
public interface IPersistFileCheckSum
[InterfaceTypeAttribute()]
[GuidAttribute(L"35355DA7-3EEA-452E-89F3-68344278F806")]
public interface class IPersistFileCheckSum
[<InterfaceTypeAttribute()>]
[<GuidAttribute("35355DA7-3EEA-452E-89F3-68344278F806")>]
type IPersistFileCheckSum =  interface end
public interface IPersistFileCheckSum

IPersistFileCheckSum 类型公开以下成员。

方法

  名称 说明
公共方法 CalculateCheckSum 使用指定的算法,计算关联的文本缓冲区的文件所表示的检查总和。

页首

备注

文本缓冲区的文件所表示的检查和计算,就象它已保存到当前状态下的磁盘与当前指定的用户保存文件格式设置 (即。 UTF8、 Unicode 等)。 文件实际上并没有编写的,并且此操作不会修改该文档中已更改的状态。 此接口可由任何实现文档或 text 缓冲区。 特别是 IVsTextBuffer (实现的由核心编辑器) 对象实现此接口。

对实现者的说明

此接口。 IVsTextBuffer 实现接口的同一个类中实现。

对调用者的说明

通过调用 IVsTextBufferIVsTextLines 对象的 QueryInterface 方法获取此接口。

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间