共用方式為


FlavoredProjectFactory.IVsProjectFactory.CreateProject Method

Definition

Creates a flavored project.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CreateProject(System::String ^ fileName, System::String ^ location, System::String ^ name, System::UInt32 flags, Guid % projectGuid, [Runtime::InteropServices::Out] IntPtr % project, [Runtime::InteropServices::Out] int % canceled) = Microsoft::VisualStudio::Shell::Interop::IVsProjectFactory::CreateProject;
int IVsProjectFactory.CreateProject (string fileName, string location, string name, uint flags, ref Guid projectGuid, out IntPtr project, out int canceled);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CreateProject : string * string * string * uint32 * Guid * nativeint * int -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory.CreateProject : string * string * string * uint32 * Guid * nativeint * int -> int
Function CreateProject (fileName As String, location As String, name As String, flags As UInteger, ByRef projectGuid As Guid, ByRef project As IntPtr, ByRef canceled As Integer) As Integer Implements IVsProjectFactory.CreateProject

Parameters

fileName
String

The name of the project file.

location
String

The path of the project file.

name
String

The name of the project.

flags
UInt32

Values from __VSCREATEPROJFLAGS.

projectGuid
Guid

The interface ID of the project.

project
IntPtr

nativeint

[out] Returns a pointer to the project.

canceled
Int32

[out] Returns true if the operation was canceled, otherwise false.

Returns

Microsoft.VisualStudio.NativeMethods.S_OK.

Implements

Remarks

This method calls CreateProject.

Applies to