IVsIntellisenseProject.AddFile(String, UInt32) Method

Definition

Adds a file to the project.

public:
 int AddFile(System::String ^ bstrAbsPath, System::UInt32 itemid);
public:
 int AddFile(Platform::String ^ bstrAbsPath, unsigned int itemid);
int AddFile(std::wstring const & bstrAbsPath, unsigned int itemid);
public int AddFile (string bstrAbsPath, uint itemid);
abstract member AddFile : string * uint32 -> int
Public Function AddFile (bstrAbsPath As String, itemid As UInteger) As Integer

Parameters

bstrAbsPath
String

[in] A string containing the full path of the file.

itemid
UInt32

[in] The item identifier (VSITEMID) of the file to add.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to