IVsSolution.GenerateNextDefaultProjectName(String, String, String) Method

Definition

This method obtains the default name for the next project in the solution (ProjectN).Generates the next default project name given a specific path.

C++/WinRT
int GenerateNextDefaultProjectName(std::wstring const & pszBaseName, std::wstring const & pszLocation, [Runtime::InteropServices::Out] std::wstring const & & pbstrProjectName);

Parameters

pszBaseName
String

[in] Root name of the project.

pszLocation
String

[in] Location of the project (path).

pbstrProjectName
String

[out] Pointer to returned project name.

Returns

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

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsSolution::GenerateNextDefaultProjectName(  
   [in] LPCOLESTR pszBaseName,  
   [in] LPCOLESTR pszLocation,  
   [out] BSTR *pbstrProjectName  
);  

This method obtains the default name for the next project in the solution (for example, Project2).

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022