Compartilhar via


VCFile.CanAddFile(String) Method

Definition

Returns true if the specified file can be added to the current project or filter.

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

Parameters

bstrFile
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 here, it is assumed to be relative to the project directory.

Returns

true if the file can be added; otherwise, false.

Attributes

Applies to