Compartilhar via


__VSCREATEPROJFLAGS Enumeration

Controls how a project is created or opened.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration __VSCREATEPROJFLAGS
[FlagsAttribute]
public enum __VSCREATEPROJFLAGS
[FlagsAttribute]
public enum class __VSCREATEPROJFLAGS
[<FlagsAttribute>]
type __VSCREATEPROJFLAGS
public enum __VSCREATEPROJFLAGS

Members

Member name Description
CPF_CLONEFILE Create a new project based on an existing project template already on disk.
CPF_NONLOCALSTORE Project uses nonlocal storage and different save mechanism.
CPF_NOTINSLNEXPLR Project is not shown as a normal project in Solution Explorer.
CPF_OPENDIRECTORY Obsolete. Do not use.
CPF_OPENFILE Project already exists on disk.
CPF_OVERWRITE If there is a project of the same name on disk already, then overwrite this project.
CPF_SILENT Use when you do not want to report any failure, as in the case of automation.

Remarks

If you determine that a project already exists during a call of CreateProject, query the user to see if they want to overwrite the existing project. If the user does want to overwrite, then call CreateProject again and specify a value of CPF_OVERWRITE for the grfCreateFlags parameter.

__VSCREATEPROJFLAGS2, defined in vsshell8.0.idl, extends __VSCREATEPROJFLAGS.

COM Signature

From vsshell.idl:

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace