This document is archived and information here might be outdated.  Recommended version.


IRemoteDatabaseWorkspaceFactory.RenameConnectionFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRemoteDatabaseWorkspaceFactory Interface > IRemoteDatabaseWorkspaceFactory.RenameConnectionFile Method
ArcGIS Developer Help

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
);
[C++]
Parameters
oldPathName [in]

oldPathName is a parameter of type BSTR newName [in]
newName is a parameter of type BSTR

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