IVsProjectUpgradeViaFactory.UpgradeProject_CheckOnly Method

Checks to see if a project needs to be upgraded.

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

Syntax

'Declaration
Function UpgradeProject_CheckOnly ( _
    bstrFileName As String, _
    pLogger As IVsUpgradeLogger, _
    <OutAttribute> ByRef pUpgradeRequired As Integer, _
    <OutAttribute> ByRef pguidNewProjectFactory As Guid, _
    <OutAttribute> ByRef pUpgradeProjectCapabilityFlags As UInteger _
) As Integer
int UpgradeProject_CheckOnly(
    string bstrFileName,
    IVsUpgradeLogger pLogger,
    out int pUpgradeRequired,
    out Guid pguidNewProjectFactory,
    out uint pUpgradeProjectCapabilityFlags
)
int UpgradeProject_CheckOnly(
    [InAttribute] String^ bstrFileName, 
    [InAttribute] IVsUpgradeLogger^ pLogger, 
    [OutAttribute] int% pUpgradeRequired, 
    [OutAttribute] Guid% pguidNewProjectFactory, 
    [OutAttribute] unsigned int% pUpgradeProjectCapabilityFlags
)
abstract UpgradeProject_CheckOnly : 
        bstrFileName:string * 
        pLogger:IVsUpgradeLogger * 
        pUpgradeRequired:int byref * 
        pguidNewProjectFactory:Guid byref * 
        pUpgradeProjectCapabilityFlags:uint32 byref -> int
function UpgradeProject_CheckOnly(
    bstrFileName : String, 
    pLogger : IVsUpgradeLogger, 
    pUpgradeRequired : int, 
    pguidNewProjectFactory : Guid, 
    pUpgradeProjectCapabilityFlags : uint
) : int

Parameters

  • bstrFileName
    Type: System.String

    [in] Project file of project to update.

  • pUpgradeRequired
    Type: System.Int32%

    [out] true if the project needs upgrading. false if the project is already up-to-date.

  • pguidNewProjectFactory
    Type: System.Guid%

    [out] If a different project factory is used to create the upgraded project, the GUID should be returned here.

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 vsshell80.idl:

[C++]

HRESULT UpgradeProject_CheckOnly(
    [in]  BSTR               bstrFileName,
    [in]  IVsUpgradeLogger * pLogger,
    [out] BOOL             * pUpgradeRequired,
    [out] GUID             * pguidNewProjectFactory,
    [out] VSPUVF_FLAGS     * pUpgradeProjectCapabilityFlags,
);

.NET Framework Security

See Also

Reference

IVsProjectUpgradeViaFactory Interface

Microsoft.VisualStudio.Shell.Interop Namespace