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: UInt32[In] The item ID (VSITEMID) of the item to add.
grfOpenOpts
Type: UInt32[In] Bit flags specifying solution file options. Constructed using values from the __VSSLNOPENOPTIONS enumeration.
pszFilename
Type: String[In] Pointer to a string containing the filename.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.