IVsFileUpgrade.UpgradeFile_CheckOnly(String, String, Int32, IVsUpgradeLogger, Int32) Metoda

Definice

Zkontroluje, jestli soubor vyžaduje upgrade, ale neprovádí upgrade.Checks if a file requires upgrading but does not perform the upgrade.

public:
 int UpgradeFile_CheckOnly(System::String ^ bstrProjectName, System::String ^ bstrFileName, int bNoBackup, Microsoft::VisualStudio::Shell::Interop::IVsUpgradeLogger ^ pLogger, [Runtime::InteropServices::Out] int % pUpgradeRequired);
int UpgradeFile_CheckOnly(std::wstring const & bstrProjectName, std::wstring const & bstrFileName, int bNoBackup, Microsoft::VisualStudio::Shell::Interop::IVsUpgradeLogger const & pLogger, [Runtime::InteropServices::Out] int & pUpgradeRequired);
public int UpgradeFile_CheckOnly (string bstrProjectName, string bstrFileName, int bNoBackup, Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger pLogger, out int pUpgradeRequired);
abstract member UpgradeFile_CheckOnly : string * string * int * Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger * int -> int
Public Function UpgradeFile_CheckOnly (bstrProjectName As String, bstrFileName As String, bNoBackup As Integer, pLogger As IVsUpgradeLogger, ByRef pUpgradeRequired As Integer) As Integer

Parametry

bstrProjectName
String

pro Řetězec obsahující název projektu, do kterého tento soubor patří.[in] String containing the name of the project the file belongs to.

bstrFileName
String

pro Řetězec obsahující úplnou cestu a název souboru navrženého pro upgrade.[in] String containing the full path and name of the file proposed for upgrade.

bNoBackup
Int32

pro Datového.[in] Boolean. Pokud true se nevytvoří žádný záložní soubor.If true, no backup file would be created.

pLogger
IVsUpgradeLogger

pro Ukazatel na IVsUpgradeLogger rozhraní, které se má použít pro protokolování akcí upgradu.[in] Pointer to a IVsUpgradeLogger interface to use for logging upgrade actions.

pUpgradeRequired
Int32

mimo Datového.[out] Boolean. Nastavte na, true Pokud soubor vyžaduje upgrade.Set to true if the file requires upgrading.

Návraty

Int32

Pokud je metoda úspěšná, vrátí S_OK .If the method succeeds, it returns S_OK. Pokud dojde k chybě, vrátí kód chyby.If it fails, it returns an error code.

Poznámky

Podpis COMCOM Signature

Z vsshell80. idl:From vsshell80.idl:

HRESULT IVsFileUpgrade::UpgradeFile_CheckOnly()  
    [in] BSTR bstrProjectName,  
    [in] BSTR bstrFileName,  
    [in] BOOL bNoBackup,  
    [in] IVsUpgradeLogger * pLogger,  
    [out] BOOL * pUpgradeRequired  
);  

Platí pro