Partager via


VCProject.CanAddFile(String) Method

Definition

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

Applies to