共用方式為


IVsProjectUpgrade.UpgradeProject(UInt32) Method

Definition

Called by the environment to determine whether the project object needs to upgrade the project to a new version.

public:
 int UpgradeProject(System::UInt32 grfUpgradeFlags);
public:
 int UpgradeProject(unsigned int grfUpgradeFlags);
int UpgradeProject(unsigned int grfUpgradeFlags);
public int UpgradeProject (uint grfUpgradeFlags);
abstract member UpgradeProject : uint32 -> int
Public Function UpgradeProject (grfUpgradeFlags As UInteger) As Integer

Parameters

grfUpgradeFlags
UInt32

[in] Flags used to determine whether the user has or has not been prompted by the environment to upgrade the solution. For more information, see __VSUPGRADEPROJFLAGS.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProjectUpgrade::UpgradeProject(  
   [in] VSUPGRADEPROJFLAGS grfUpgradeFlags  
);  

Applies to