VCFile.CanAddFile(String) 方法

定义

true如果可以将指定的文件添加到当前项目或筛选器,则返回。

public:
 bool CanAddFile(System::String ^ bstrFile);
public:
 bool CanAddFile(Platform::String ^ bstrFile);
bool CanAddFile(std::wstring const & bstrFile);
[System.Runtime.InteropServices.DispId(416)]
public bool CanAddFile (string bstrFile);
[<System.Runtime.InteropServices.DispId(416)>]
abstract member CanAddFile : string -> bool
Public Function CanAddFile (bstrFile As String) As Boolean

参数

bstrFile
String

必需。 要添加的新文件。 项目中的完整路径必须唯一且有效。 如果在此处传递相对路径,则假定它是相对于项目目录的路径。

返回

Boolean

true 如果可以添加该文件,则为; 否则为。否则为 false

属性

适用于