IVsProjectFlavorUpgradeViaFactory.UpgradeProjectFlavor_CheckOnly Method
Checks if a flavored project upgrade is possible.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'宣告
Function UpgradeProjectFlavor_CheckOnly ( _
pszFileName As String, _
pUpgradeBuildPropStg As IVsUpgradeBuildPropertyStorage, _
pszProjFileXMLFragment As String, _
pszUserFileXMLFragment As String, _
pLogger As IVsUpgradeLogger, _
<OutAttribute> ByRef pUpgradeRequired As Integer, _
<OutAttribute> ByRef pguidNewProjectFactory As Guid _
) As Integer
'用途
Dim instance As IVsProjectFlavorUpgradeViaFactory
Dim pszFileName As String
Dim pUpgradeBuildPropStg As IVsUpgradeBuildPropertyStorage
Dim pszProjFileXMLFragment As String
Dim pszUserFileXMLFragment As String
Dim pLogger As IVsUpgradeLogger
Dim pUpgradeRequired As Integer
Dim pguidNewProjectFactory As Guid
Dim returnValue As Integer
returnValue = instance.UpgradeProjectFlavor_CheckOnly(pszFileName, _
pUpgradeBuildPropStg, pszProjFileXMLFragment, _
pszUserFileXMLFragment, pLogger, _
pUpgradeRequired, pguidNewProjectFactory)
int UpgradeProjectFlavor_CheckOnly(
string pszFileName,
IVsUpgradeBuildPropertyStorage pUpgradeBuildPropStg,
string pszProjFileXMLFragment,
string pszUserFileXMLFragment,
IVsUpgradeLogger pLogger,
out int pUpgradeRequired,
out Guid pguidNewProjectFactory
)
int UpgradeProjectFlavor_CheckOnly(
[InAttribute] String^ pszFileName,
[InAttribute] IVsUpgradeBuildPropertyStorage^ pUpgradeBuildPropStg,
[InAttribute] String^ pszProjFileXMLFragment,
[InAttribute] String^ pszUserFileXMLFragment,
[InAttribute] IVsUpgradeLogger^ pLogger,
[OutAttribute] int% pUpgradeRequired,
[OutAttribute] Guid% pguidNewProjectFactory
)
abstract UpgradeProjectFlavor_CheckOnly :
pszFileName:string *
pUpgradeBuildPropStg:IVsUpgradeBuildPropertyStorage *
pszProjFileXMLFragment:string *
pszUserFileXMLFragment:string *
pLogger:IVsUpgradeLogger *
pUpgradeRequired:int byref *
pguidNewProjectFactory:Guid byref -> int
function UpgradeProjectFlavor_CheckOnly(
pszFileName : String,
pUpgradeBuildPropStg : IVsUpgradeBuildPropertyStorage,
pszProjFileXMLFragment : String,
pszUserFileXMLFragment : String,
pLogger : IVsUpgradeLogger,
pUpgradeRequired : int,
pguidNewProjectFactory : Guid
) : int
Parameters
- pszFileName
Type: System.String
Name of file to upgrade.
- pUpgradeBuildPropStg
Type: Microsoft.VisualStudio.Shell.Interop.IVsUpgradeBuildPropertyStorage
Used to read and update build related properties and imports.
- pszProjFileXMLFragment
Type: System.String
Project file XML fragment.
- pszUserFileXMLFragment
Type: System.String
Project user file XML fragment.
- pLogger
Type: Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger
A IVsUpgradeLogger upgrade logger.
- pUpgradeRequired
Type: System.Int32%
Specifies upgrade is required.
- pguidNewProjectFactory
Type: System.Guid%
Pointer to the project factory.
Return Value
Type: System.Int32
Remarks
From vsshell90.idl:
HRESULT UpgradeProjectFlavor_CheckOnly(
[in] LPCOLESTR pszFileName,
[in] IVsUpgradeBuildPropertyStorage * pUpgradeBuildPropStg,
[in] LPCOLESTR pszProjFileXMLFragment,
[in] LPCOLESTR pszUserFileXMLFragment,
[in] IVsUpgradeLogger * pLogger,
[out] BOOL * pUpgradeRequired,
[out, optional] GUID * pguidNewProjectFactory
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsProjectFlavorUpgradeViaFactory Interface