IVsFileChangeEx.IgnoreFile(UInt32, String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
忽略对文件的更改。
public:
int IgnoreFile(System::UInt32 VSCOOKIE, System::String ^ pszMkDocument, int fIgnore);
public:
int IgnoreFile(unsigned int VSCOOKIE, Platform::String ^ pszMkDocument, int fIgnore);
int IgnoreFile(unsigned int VSCOOKIE, std::wstring const & pszMkDocument, int fIgnore);
public int IgnoreFile (uint VSCOOKIE, string pszMkDocument, int fIgnore);
abstract member IgnoreFile : uint32 * string * int -> int
Public Function IgnoreFile (VSCOOKIE As UInteger, pszMkDocument As String, fIgnore As Integer) As Integer
参数
- VSCOOKIE
- UInt32
中标识文件的 VSCOOKIE。 如果使用此参数指定文件,则 pszMkDocument 必须将设置为 null 。
- pszMkDocument
- String
中项目系统中文档的名字对象标识符的字符串格式。 对于文件文档,这始终是文件的路径。 如果使用此参数指定文件,则 vsCookie 必须将设置为 null 。
- fIgnore
- Int32
中如果为 true ,则忽略文件更改。 如果为 false ,则不忽略文件更改。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsFileChangeEx::IgnoreFile(
[in] VSCOOKIE vsCookie,
[in] LPCOLESTR pszMkDocument,
[in] BOOL fIgnore
);
使用 vsCookie 或 pszMkDocument 参数指定文件。 如果同时使用这两个参数, E_INVALIDARG 则返回。