Compartir a través de


IVsProjectFlavorUpgradeViaFactory2.UpgradeProjectFlavor_CheckOnly Method

Checks if a flavored project upgrade is possible.

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

Syntax

'Declaration
Sub UpgradeProjectFlavor_CheckOnly ( _
    pszFileName As String, _
    pUpgradeBuildPropStg As Object, _
    pszProjFileXMLFragment As String, _
    pszUserFileXMLFragment As String, _
    pLogger As IVsUpgradeLogger, _
    <OutAttribute> ByRef pUpgradeRequired As UInteger, _
    <OutAttribute> ByRef pguidNewProjectFactory As Guid _
)
void UpgradeProjectFlavor_CheckOnly(
    string pszFileName,
    Object pUpgradeBuildPropStg,
    string pszProjFileXMLFragment,
    string pszUserFileXMLFragment,
    IVsUpgradeLogger pLogger,
    out uint pUpgradeRequired,
    out Guid pguidNewProjectFactory
)
void UpgradeProjectFlavor_CheckOnly(
    [InAttribute] String^ pszFileName, 
    [InAttribute] Object^ pUpgradeBuildPropStg, 
    [InAttribute] String^ pszProjFileXMLFragment, 
    [InAttribute] String^ pszUserFileXMLFragment, 
    [InAttribute] IVsUpgradeLogger^ pLogger, 
    [OutAttribute] unsigned int% pUpgradeRequired, 
    [OutAttribute] Guid% pguidNewProjectFactory
)
abstract UpgradeProjectFlavor_CheckOnly : 
        pszFileName:string * 
        pUpgradeBuildPropStg:Object * 
        pszProjFileXMLFragment:string * 
        pszUserFileXMLFragment:string * 
        pLogger:IVsUpgradeLogger * 
        pUpgradeRequired:uint32 byref * 
        pguidNewProjectFactory:Guid byref -> unit
function UpgradeProjectFlavor_CheckOnly(
    pszFileName : String, 
    pUpgradeBuildPropStg : Object, 
    pszProjFileXMLFragment : String, 
    pszUserFileXMLFragment : String, 
    pLogger : IVsUpgradeLogger, 
    pUpgradeRequired : uint, 
    pguidNewProjectFactory : Guid
)

Parameters

  • pszFileName
    Type: String

    [in] Name of the file to upgrade.

  • pUpgradeBuildPropStg
    Type: Object

    [in] Used to read and update build-related properties and imports.

  • pszProjFileXMLFragment
    Type: String

    [in] Project file XML fragment.

  • pszUserFileXMLFragment
    Type: String

    [in] Project user file XML fragment.

  • pUpgradeRequired
    Type: UInt32%

    [out] The flag indicating the type of upgrade.

  • pguidNewProjectFactory
    Type: Guid%

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

.NET Framework Security

See Also

Reference

IVsProjectFlavorUpgradeViaFactory2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace