Compartir a través de


IVsParentProject2.AddNestedSolution(UInt32, UInt32, String) Method

Definition

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

public:
 int AddNestedSolution(System::UInt32 itemidLoc, System::UInt32 grfOpenOpts, System::String ^ pszFilename);
public:
 int AddNestedSolution(unsigned int itemidLoc, unsigned int grfOpenOpts, Platform::String ^ pszFilename);
int AddNestedSolution(unsigned int itemidLoc, unsigned int grfOpenOpts, std::wstring const & pszFilename);
public int AddNestedSolution (uint itemidLoc, uint grfOpenOpts, string pszFilename);
abstract member AddNestedSolution : uint32 * uint32 * string -> int
Public Function AddNestedSolution (itemidLoc As UInteger, grfOpenOpts As UInteger, pszFilename As String) As Integer

Parameters

itemidLoc
UInt32

[In] The item ID (VSITEMID) of the item to add.

grfOpenOpts
UInt32

[In] Bit flags specifying solution file options. Constructed using values from the __VSSLNOPENOPTIONS enumeration.

pszFilename
String

[In] Pointer to a string containing the filename.

Returns

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

Remarks

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.

COM Signature

From vsshell80.idl:

HRESULT IVsParentProject2::AddNestedSolution(  
   [in] VSITEMID itemidLoc,   
   [in] VSSLNOPENOPTIONS grfOpenOpts,   
   [in] LPCOLESTR pszFilename  
);  

Applies to