This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRemoteDatabaseWorkspaceFactory Interface > IRemoteDatabaseWorkspaceFactory.RenameConnectionFile Method (ArcObjects .NET 10.4 SDK) |
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
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.