IVsSolution2.GenerateNextDefaultProjectName(String, String, String) Method

Definition

Generates the next default project name given a specific path.

public:
 int GenerateNextDefaultProjectName(System::String ^ pszBaseName, System::String ^ pszLocation, [Runtime::InteropServices::Out] System::String ^ % pbstrProjectName);
int GenerateNextDefaultProjectName(std::wstring const & pszBaseName, std::wstring const & pszLocation, [Runtime::InteropServices::Out] std::wstring const & & pbstrProjectName);
public int GenerateNextDefaultProjectName (string pszBaseName, string pszLocation, out string pbstrProjectName);
abstract member GenerateNextDefaultProjectName : string * string * string -> int
Public Function GenerateNextDefaultProjectName (pszBaseName As String, pszLocation As String, ByRef pbstrProjectName As String) As Integer

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.

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::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