IVsAsyncFileChangeEx.IgnoreFileAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
忽略或取消忽略文件或订阅中的更改。
public System.Threading.Tasks.Task IgnoreFileAsync (uint cookie, string filename, bool ignore, System.Threading.CancellationToken cancellationToken = default);
abstract member IgnoreFileAsync : uint32 * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function IgnoreFileAsync (cookie As UInteger, filename As String, ignore As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task
参数
- cookie
- UInt32
要忽略的文件订阅的 cookie。 如果 VSConstants.VSCOOKIE_NIL 此项,则 filename 将忽略或取消忽略的所有订阅。
如果这是其他任何值,则 filename 不使用参数。
- filename
- String
要忽略的文件的名称。 如果 cookie 是 VSConstants.VSCOOKIE_NIL 以外的任何值,则不使用此参数。
- ignore
- Boolean
若要忽略文件或订阅,则为 True; 如果忽略,则为 false。
- cancellationToken
- CancellationToken
取消标记。
返回
操作完成后将完成的任务。