ArcObjects Library Reference (GeoDatabase)  

IWorkspaceFactory.Move Method

Moves a workspace to the specified destination folder.

[Visual Basic .NET]
Public Function Move ( _
    ByVal WorkspaceName As IWorkspaceName, _
    ByVal destinationFolder As String _
) As Boolean
public bool Move (
    IWorkspaceName WorkspaceName,
    string destinationFolder
  IWorkspaceName* WorkspaceName,
  BSTR destinationFolder,
  VARIANT_BOOL* successfulMove


WorkspaceName [in]

  WorkspaceName is a parameter of type IWorkspaceName

destinationFolder [in]   destinationFolder is a parameter of type BSTR successfulMove [out, retval]   successfulMove is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


The Copy and Move methods can be used to copy or move workspaces or connection files between folders in the file system. The Boolean result indicates if the operation was successful. In the case of remote database workspaces, these operations work on the connection file representing the workspace.

See Also

IWorkspaceFactory Interface