This documentation is archived and is not being maintained.

IVsSolution.GenerateNextDefaultProjectName Method

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

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int GenerateNextDefaultProjectName (
	[InAttribute] string pszBaseName,
	[InAttribute] string pszLocation,
	out string pbstrProjectName
)
int GenerateNextDefaultProjectName (
	/** @attribute InAttribute() */ String pszBaseName, 
	/** @attribute InAttribute() */ String pszLocation, 
	/** @attribute OutAttribute() */ /** @ref */ String pbstrProjectName
)
JScript does not support passing value-type arguments by reference.

Parameters

pszBaseName

[in] Root name of the project.

pszLocation

[in] Location of the project (path).

pbstrProjectName

[out] Pointer to returned project name.

Return Value

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

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).

Show: