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
- lpszProjectPath
Type: System.String
[in] Path to the project.
- 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
- 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.