Share via


IVsParentProject2.AddNestedSolution Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function AddNestedSolution ( _
    itemidLoc As UInteger, _
    grfOpenOpts As UInteger, _
    pszFilename As String _
) As Integer
int AddNestedSolution(
    uint itemidLoc,
    uint grfOpenOpts,
    string pszFilename
)
int AddNestedSolution(
    [InAttribute] unsigned int itemidLoc, 
    [InAttribute] unsigned int grfOpenOpts, 
    [InAttribute] String^ pszFilename
)
abstract AddNestedSolution : 
        itemidLoc:uint32 * 
        grfOpenOpts:uint32 * 
        pszFilename:string -> int 
function AddNestedSolution(
    itemidLoc : uint, 
    grfOpenOpts : uint, 
    pszFilename : String
) : int

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 __VSSLNOPENOPTIONS() enumeration.
  • pszFilename
    Type: System.String
    [In] Pointer to a string containing the filename.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsParentProject2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace