次の方法で共有


__VSCREATEPROJFLAGS Enum

Definition

Controls how a project is created or opened.

This enumeration supports a bitwise combination of its member values.

public enum class __VSCREATEPROJFLAGS
public enum class __VSCREATEPROJFLAGS
enum __VSCREATEPROJFLAGS
[System.Flags]
public enum __VSCREATEPROJFLAGS
[<System.Flags>]
type __VSCREATEPROJFLAGS = 
Public Enum __VSCREATEPROJFLAGS
Inheritance
__VSCREATEPROJFLAGS
Attributes

Fields

Name Value Description
CPF_CLONEFILE 1

Create a new project based on an existing project template already on disk.

CPF_OPENFILE 2

Project already exists on disk.

CPF_OPENDIRECTORY 4

Obsolete. Do not use.

CPF_SILENT 8

Use when you do not want to report any failure, as in the case of automation.

CPF_OVERWRITE 16

If there is a project of the same name on disk already, then overwrite this project.

CPF_NOTINSLNEXPLR 32

Project is not shown as a normal project in Solution Explorer.

CPF_NONLOCALSTORE 64

Project uses nonlocal storage and different save mechanism.

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:

Applies to