Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a flavored project.
Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Private Function CreateProject ( _
    fileName As String, _
    location As String, _
    name As String, _
    flags As UInteger, _
    ByRef projectGuid As Guid, _
    <OutAttribute> ByRef project As IntPtr, _
    <OutAttribute> ByRef canceled As Integer _
) As Integer Implements IVsProjectFactory.CreateProject
int IVsProjectFactory.CreateProject(
    string fileName,
    string location,
    string name,
    uint flags,
    ref Guid projectGuid,
    out IntPtr project,
    out int canceled
)
private:
virtual int CreateProject(
    String^ fileName, 
    String^ location, 
    String^ name, 
    unsigned int flags, 
    Guid% projectGuid, 
    [OutAttribute] IntPtr% project, 
    [OutAttribute] int% canceled
) sealed = IVsProjectFactory::CreateProject
private abstract CreateProject : 
        fileName:string * 
        location:string * 
        name:string * 
        flags:uint32 * 
        projectGuid:Guid byref * 
        project:IntPtr byref * 
        canceled:int byref -> int  
private override CreateProject : 
        fileName:string * 
        location:string * 
        name:string * 
        flags:uint32 * 
        projectGuid:Guid byref * 
        project:IntPtr byref * 
        canceled:int byref -> int
JScript does not support explicit interface implementations.
Parameters
- fileName 
 Type: String- The name of the project file. 
- location 
 Type: String- The path of the project file. 
- name 
 Type: String- The name of the project. 
- flags 
 Type: UInt32- Values from __VSCREATEPROJFLAGS. 
- projectGuid 
 Type: Guid%- The interface ID of the project. 
- project 
 Type: IntPtr%- [out] Returns a pointer to the project. 
- canceled 
 Type: Int32%- [out] Returns true if the operation was canceled, otherwise false. 
Return Value
Type: Int32
S_OK.
Implements
IVsProjectFactory.CreateProject(String, String, String, UInt32, Guid%, IntPtr%, Int32%)
Remarks
This method calls CreateProject.
.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.