Partager via


IVsProjectFactory Interface

Definition

Creates projects within the solution.

public interface class IVsProjectFactory
public interface class IVsProjectFactory
__interface IVsProjectFactory
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("33FCD00A-BD45-403C-9C66-07BA9A923501")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsProjectFactory
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("33FCD00A-BD45-403C-9C66-07BA9A923501")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsProjectFactory
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("33FCD00A-BD45-403C-9C66-07BA9A923501")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsProjectFactory = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("33FCD00A-BD45-403C-9C66-07BA9A923501")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsProjectFactory = interface
Public Interface IVsProjectFactory
Derived
Attributes

Remarks

Implemented by a package that implements a project type. This interface is passed to the Visual Studio environment via RegisterProjectType.

Notes to Implementers

Implement IVsProjectFactory when needing to create and site a project within a solution.

Methods

CanCreateProject(String, UInt32, Int32)

Determines whether a new project can be created.

Close()

Shuts down the project factory.

CreateProject(String, String, String, UInt32, Guid, IntPtr, Int32)

Creates a new project.

SetSite(IServiceProvider)

Initializes the project factory in the environment and allows the project to obtain services proffered by the environment.

Applies to