Copies some or all of a Web project to a new location.
Namespace: Microsoft.VisualStudio.Package.Automation
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Sub CopyProject ( _
bstrDestFolder As String, _
bstrDestUNCPath As String, _
copyProjectOption As prjCopyProjectOption, _
bstrUsername As String, _
bstrPassword As String _
)
'使用
Dim instance As OAVSProject
Dim bstrDestFolder As String
Dim bstrDestUNCPath As String
Dim copyProjectOption As prjCopyProjectOption
Dim bstrUsername As String
Dim bstrPassword As String
instance.CopyProject(bstrDestFolder, _
bstrDestUNCPath, copyProjectOption, _
bstrUsername, bstrPassword)
public void CopyProject(
string bstrDestFolder,
string bstrDestUNCPath,
prjCopyProjectOption copyProjectOption,
string bstrUsername,
string bstrPassword
)
public:
virtual void CopyProject(
String^ bstrDestFolder,
String^ bstrDestUNCPath,
prjCopyProjectOption copyProjectOption,
String^ bstrUsername,
String^ bstrPassword
) sealed
public final function CopyProject(
bstrDestFolder : String,
bstrDestUNCPath : String,
copyProjectOption : prjCopyProjectOption,
bstrUsername : String,
bstrPassword : String
)
Parameters
bstrDestFolder
Type: System.StringThe destination folder for the new project. The folder is created if it does not exist. This string takes the form "https://ServerName/CopyName/"
bstrDestUNCPath
Type: System.StringThe UNC path for file-sharing if the project to be copied is using file-share access. Use the empty string if the project is using FrontPage Server Extensions access.
copyProjectOption
Type: VSLangProj.prjCopyProjectOptionA prjCopyProjectOption value that determines which project files are copied — all the files, all the project files, or only the files needed to run the application.
bstrUsername
Type: System.StringThe user's network login ID.
bstrPassword
Type: System.StringThe user's password.
Implements
VSProject.CopyProject(String, String, prjCopyProjectOption, String, String)
Remarks
This is a VSProject method and is not implemented in this class. It throws an exception.
Permissions
- 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.