IVsParentProject2::AddNestedSolution Method (UInt32, UInt32, String^)
Enables addition of the contents of a solution, in the same that it's done through the user interface, to a project (for example, a solution folder).
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int AddNestedSolution( unsigned int itemidLoc, unsigned int grfOpenOpts, String^ pszFilename )
Parameters
- itemidLoc
-
Type:
System::UInt32
[In] The item ID (VSITEMID) of the item to add.
- grfOpenOpts
-
Type:
System::UInt32
[In] Bit flags specifying solution file options. Constructed using values from the E:Microsoft.VisualStudio.Shell.Interop.__VSSLNOPENOPTIONS enumeration.
- pszFilename
-
Type:
System::String^
[In] Pointer to a string containing the filename.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method's parameters are the same as those for the OpenSolutionFile method of the IVsSolution interface.
If the project supports IVsParentProject2, you can use this method. Otherwise, use the CreateProject method of the IVsSolution interface.
From vsshell80.idl:
HRESULT IVsParentProject2::AddNestedSolution( [in] VSITEMID itemidLoc, [in] VSSLNOPENOPTIONS grfOpenOpts, [in] LPCOLESTR pszFilename );