Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Creates and adds a solution to a project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function CreateNestedProject ( _
itemidLoc As UInteger, _
ByRef rguidProjectType As Guid, _
lpszMoniker As String, _
lpszLocation As String, _
lpszName As String, _
grfCreateFlags As UInteger, _
ByRef rguidProjectID As Guid, _
ByRef iidProject As Guid, _
<OutAttribute> ByRef ppProject As IntPtr _
) As Integer
int CreateNestedProject(
uint itemidLoc,
ref Guid rguidProjectType,
string lpszMoniker,
string lpszLocation,
string lpszName,
uint grfCreateFlags,
ref Guid rguidProjectID,
ref Guid iidProject,
out IntPtr ppProject
)
int CreateNestedProject(
[InAttribute] unsigned int itemidLoc,
[InAttribute] Guid% rguidProjectType,
[InAttribute] String^ lpszMoniker,
[InAttribute] String^ lpszLocation,
[InAttribute] String^ lpszName,
[InAttribute] unsigned int grfCreateFlags,
[InAttribute] Guid% rguidProjectID,
[InAttribute] Guid% iidProject,
[OutAttribute] IntPtr% ppProject
)
abstract CreateNestedProject :
itemidLoc:uint32 *
rguidProjectType:Guid byref *
lpszMoniker:string *
lpszLocation:string *
lpszName:string *
grfCreateFlags:uint32 *
rguidProjectID:Guid byref *
iidProject:Guid byref *
ppProject:IntPtr byref -> int
function CreateNestedProject(
itemidLoc : uint,
rguidProjectType : Guid,
lpszMoniker : String,
lpszLocation : String,
lpszName : String,
grfCreateFlags : uint,
rguidProjectID : Guid,
iidProject : Guid,
ppProject : IntPtr
) : int
Parameters
itemidLoc
Type: UInt32[in] The item id (VSITEMID) of the item to add.
rguidProjectType
Type: Guid%[in] The GUID of the project to add.
lpszMoniker
Type: String[in] String containing the moniker of the project item.
lpszLocation
Type: String[in] String containing the full path to the project.
lpszName
Type: String[in] String containing project name.
grfCreateFlags
Type: UInt32[in] Bit flags specifying creation options for the project. Constructed using values from the __VSCREATEPROJFLAGS enumeration.
rguidProjectID
Type: Guid%[in] The IID of the interface to create. Use IID_IUnknown for a generic T:IUnknown interface. You can also use IID_IVsHierarchy to get back a hierarchy interface.
iidProject
Type: Guid%[in] The item id (VSITEMID) of the item to add.
ppProject
Type: IntPtr%[out] Pointer to the created interface for the project.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
HRESULT IVsParentProject2::CreateNestedProject(
[in] VSITEMID itemidLoc,
[in] REFGUID rguidProjectType,
[in] LPCOLESTR lpszMoniker,
[in] LPCOLESTR lpszLocation,
[in] LPCOLESTR lpszName,
[in] VSCREATEPROJFLAGS grfCreateFlags,
[in] REFIID iidProject,
[out, iid_is(iidProject)] void **ppProject
);
.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.