Compartilhar via


IVsWebAppMigration.CanConvertToWebApp(String, Int32, String) Method

Definition

Determines if a project file can be converted to MSBuild format.

public:
 int CanConvertToWebApp(System::String ^ lpszProjectPath, [Runtime::InteropServices::Out] int % pConverToWebApp, [Runtime::InteropServices::Out] System::String ^ % pbstrNewProjPath);
int CanConvertToWebApp(std::wstring const & lpszProjectPath, [Runtime::InteropServices::Out] int & pConverToWebApp, [Runtime::InteropServices::Out] std::wstring const & & pbstrNewProjPath);
public int CanConvertToWebApp (string lpszProjectPath, out int pConverToWebApp, out string pbstrNewProjPath);
abstract member CanConvertToWebApp : string * int * string -> int
Public Function CanConvertToWebApp (lpszProjectPath As String, ByRef pConverToWebApp As Integer, ByRef pbstrNewProjPath As String) As Integer

Parameters

lpszProjectPath
String

[in] path to the old project file.

pConverToWebApp
Int32

[out] Boolean value; true if the project can be converted.

pbstrNewProjPath
String

[out] Path to the new project.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method determines if a Visual Studio 2003 project file can be converted to a Visual Studio 2008 MSBuild project.

Implementation has to get user input to identify if a Web project needs to be converted to a Web Application.

COM Signature

From webmigration.idl:

HRESULT CanConvertToWebApp(   
    [in]  LPCOLESTR  lpszProjectPath,  
    [out] BOOL  * pConverToWebApp,  
    [out] BSTR  * pbstrNewProjPath  
);   

Applies to