IVsSolution2::GenerateNextDefaultProjectName Method (String^, String^, String^)
Visual Studio 2015
Generates the next default project name given a specific path.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GenerateNextDefaultProjectName(
String^ pszBaseName,
String^ pszLocation,
[OutAttribute] String^% pbstrProjectName
)
Parameters
- pszBaseName
-
Type:
System::String^
[in] Root name of the project.
- pszLocation
-
Type:
System::String^
[in] Location of the project (path).
- pbstrProjectName
-
Type:
System::String^
[out] Pointer to returned project name.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: