Compartilhar via


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.

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.

Remarks

COM Signature

From vsshell.idl:

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