ArcObjects Library Reference (GeoDatabase)  

IRemoteDatabaseWorkspaceFactory.RenameConnectionFile Method

Renames the remote database workspace connection file.

[Visual Basic .NET]
Public Function RenameConnectionFile ( _
    ByVal oldPathName As String, _
    ByVal newName As String _
) As IWorkspaceName
[C#]
public IWorkspaceName RenameConnectionFile (
    string oldPathName,
    string newName
);
[C++]
HRESULT RenameConnectionFile(
  BSTR oldPathName,
  BSTR newName,
  IWorkspaceName** WorkspaceName
);
[C++]

Parameters

oldPathName [in]   oldPathName is a parameter of type BSTR newName [in]   newName is a parameter of type BSTR WorkspaceName [out, retval]

  WorkspaceName is a parameter of type IWorkspaceName

Product Availability

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

Remarks

The oldPathName is the path and connection file name.  the newName is the new file name without a path.  An error is returned if newName has a fully qualified path. 

See Also

IRemoteDatabaseWorkspaceFactory Interface