IVsSolution.GenerateNextDefaultProjectName(String, String, String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- pszBaseName
- String
[in] Root name of the project.
- pszLocation
- String
[in] Location of the project (path).
- pbstrProjectName
- String
[out] Pointer to returned project name.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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).
製品 | バージョン |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |