다음을 통해 공유


IVsProjectUpgrade.UpgradeProject Method

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

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

Syntax

‘선언
Function UpgradeProject ( _
    grfUpgradeFlags As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsProjectUpgrade
Dim grfUpgradeFlags As UInteger
Dim returnValue As Integer

returnValue = instance.UpgradeProject(grfUpgradeFlags)
int UpgradeProject(
    uint grfUpgradeFlags
)
int UpgradeProject(
    [InAttribute] unsigned int grfUpgradeFlags
)
abstract UpgradeProject : 
        grfUpgradeFlags:uint32 -> int 
function UpgradeProject(
    grfUpgradeFlags : uint
) : int

Parameters

  • grfUpgradeFlags
    Type: System.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.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsProjectUpgrade Interface

IVsProjectUpgrade Members

Microsoft.VisualStudio.Shell.Interop Namespace