Compartir a través de


FlavoredProjectFactoryBase.CreateProject Method

Creates a project.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Declaración
Protected Overridable Sub 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 _
)
'Uso
Dim fileName As String
Dim location As String
Dim name As String
Dim flags As UInteger
Dim projectGuid As Guid
Dim project As IntPtr
Dim canceled As Integer

Me.CreateProject(fileName, location, _
    name, flags, projectGuid, project, _
    canceled)
protected virtual void CreateProject(
    string fileName,
    string location,
    string name,
    uint flags,
    ref Guid projectGuid,
    out IntPtr project,
    out int canceled
)
protected:
virtual void CreateProject(
    String^ fileName, 
    String^ location, 
    String^ name, 
    unsigned int flags, 
    Guid% projectGuid, 
    [OutAttribute] IntPtr% project, 
    [OutAttribute] int% canceled
)
abstract CreateProject : 
        fileName:string * 
        location:string * 
        name:string * 
        flags:uint32 * 
        projectGuid:Guid byref * 
        project:IntPtr byref * 
        canceled:int byref -> unit 
override CreateProject : 
        fileName:string * 
        location:string * 
        name:string * 
        flags:uint32 * 
        projectGuid:Guid byref * 
        project:IntPtr byref * 
        canceled:int byref -> unit 
protected function CreateProject(
    fileName : String, 
    location : String, 
    name : String, 
    flags : uint, 
    projectGuid : Guid, 
    project : IntPtr, 
    canceled : int
)

Parameters

  • projectGuid
    Type: System.Guid%
    The interface ID of the project.
  • project
    Type: System.IntPtr%
    [out] Returns a pointer to the project.
  • canceled
    Type: System.Int32%
    [out] Returns true if the operation was canceled, otherwise false.

Remarks

This method should be implemented for projects that a file extension different from that of the base project.

.NET Framework Security

See Also

Reference

FlavoredProjectFactoryBase Class

FlavoredProjectFactoryBase Members

Microsoft.VisualStudio.Shell.Flavor Namespace