Compartir a través de


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

'Declaración
Function AddNestedSolution ( _
    itemidLoc As UInteger, _
    grfOpenOpts As UInteger, _
    pszFilename As String _
) As Integer
'Uso
Dim instance As IVsParentProject2
Dim itemidLoc As UInteger
Dim grfOpenOpts As UInteger
Dim pszFilename As String
Dim returnValue As Integer

returnValue = instance.AddNestedSolution(itemidLoc, _
    grfOpenOpts, pszFilename)
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.
  • 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

IVsParentProject2 Members

Microsoft.VisualStudio.Shell.Interop Namespace