共用方式為


IVsWebAppMigration.ConvertProjFileToWebAppProj Method

Converts a project file to a Web Application project file.

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

Syntax

'宣告
Function ConvertProjFileToWebAppProj ( _
    lpszProjectPath As String, _
    <OutAttribute> ByRef pProjectFactoryGuid As Guid _
) As Integer
'用途
Dim instance As IVsWebAppMigration
Dim lpszProjectPath As String
Dim pProjectFactoryGuid As Guid
Dim returnValue As Integer

returnValue = instance.ConvertProjFileToWebAppProj(lpszProjectPath, _
    pProjectFactoryGuid)
int ConvertProjFileToWebAppProj(
    string lpszProjectPath,
    out Guid pProjectFactoryGuid
)
int ConvertProjFileToWebAppProj(
    [InAttribute] String^ lpszProjectPath, 
    [OutAttribute] Guid% pProjectFactoryGuid
)
abstract ConvertProjFileToWebAppProj : 
        lpszProjectPath:string * 
        pProjectFactoryGuid:Guid byref -> int 
function ConvertProjFileToWebAppProj(
    lpszProjectPath : String, 
    pProjectFactoryGuid : Guid
) : int

Parameters

  • pProjectFactoryGuid
    Type: System.Guid%
    [out] GUID for the project factory.

Return Value

Type: System.Int32
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.

COM Signature

From webmigration.idl:

HRESULT ConvertProjFileToWebAppProj(
    [in]  LPCOLESTR      lpszProjectPath,
    [out] GUID * pProjectFactoryGuid
); 

.NET Framework Security

See Also

Reference

IVsWebAppMigration Interface

IVsWebAppMigration Members

Microsoft.VisualStudio.Shell.Interop Namespace