VCProject.CanAddFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true
if the specified file can be added to the current project or filter.
public:
bool CanAddFile(System::String ^ File);
public:
bool CanAddFile(Platform::String ^ File);
bool CanAddFile(std::wstring const & File);
[System.Runtime.InteropServices.DispId(804)]
public bool CanAddFile (string File);
[<System.Runtime.InteropServices.DispId(804)>]
abstract member CanAddFile : string -> bool
Public Function CanAddFile (File As String) As Boolean
Parameters
- File
- String
Required. The new file to be added. The full path must be unique in the project and valid. If you pass a relative path, it is assumed to be relative to the project directory.
Returns
true
if the file can be added; otherwise, false
.
- Attributes