文件的忽略计数更改的增加或减少。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function AdjustFileChangeIgnoreCount ( _
pBuffer As IVsTextBuffer, _
fIgnore As Integer _
) As Integer
int AdjustFileChangeIgnoreCount(
IVsTextBuffer pBuffer,
int fIgnore
)
int AdjustFileChangeIgnoreCount(
[InAttribute] IVsTextBuffer^ pBuffer,
[InAttribute] int fIgnore
)
abstract AdjustFileChangeIgnoreCount :
pBuffer:IVsTextBuffer *
fIgnore:int -> int
function AdjustFileChangeIgnoreCount(
pBuffer : IVsTextBuffer,
fIgnore : int
) : int
参数
pBuffer
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer[in] 会将忽略请计数的 IVsTextBuffer 接口的指针。
fIgnore
类型:Int32[in] 如果 true,忽略计数将值为然后添加。 如果 false,忽略计数由值为然后减少引用的缓冲区。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextManager::AdjustFileChangeIgnoreCount(
[in] IVsTextBuffer *pBuffer,
[in] BOOL fIgnore
);
忽略计数指示应忽略所做的更改对文本缓冲区。 如果忽略计数未设置,则对缓冲区可能导致当前使用对话框或其他通知的用户。 例如,文件,则与文本缓冲区在源代码管理下,而一个更改在外部对该文件,则系统将查询用户重新加载文件,则忽略计数尚未设置。
忽略计数为增量方式,并且则是由值递增,每次 IVsTextManager.AdjustFileChangeIgnoreCount 调用,并 true 的值。 bIgnore 参数指定。 文件更改通知被忽略,直到忽略计数返回通过调用 IVsTextManager.AdjustFileChangeIgnoreCount 并指定 false 的值为零 bIgnore的。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。