
Visual Basic (Declaration)
C#
If the source project is absent or the target project already exists, this task returns an error. The task also returns an error in attempt to rename a project to itself.
The result of this task is always the true value.
The code snippet below executes a Rename Project task.
C# | ![]() |
---|---|
// workspaceName is a repository workspace name. // projectName is a source project name. // newProjectName is a target project name. renameProjectTask.ExecuteAsync(workspaceName, projectName, newProjectName, new AsyncResponder(resultHandler, faultHandler)); |
System.Object
ESRI.ArcGIS.Client.BACore.Client.AbstractTask
ESRI.ArcGIS.Client.BACore.Client.BATask<TResult,TEventArgs>
ESRI.ArcGIS.Client.BAServer.Tasks.BAServerTask<TResult>
ESRI.ArcGIS.Client.BAServer.Tasks.Repository.RenameProjectTask
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family