MockAdlsClient.Rename(String, String, Boolean, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the source entry and add a new entry in the internal dictionary with the same metadata of the source entry
public override bool Rename (string path, string destination, bool overwrite = false, System.Threading.CancellationToken cancelToken = default);
override this.Rename : string * string * bool * System.Threading.CancellationToken -> bool
Public Overrides Function Rename (path As String, destination As String, Optional overwrite As Boolean = false, Optional cancelToken As CancellationToken = Nothing) As Boolean
Parameters
- path
- String
Source path name
- destination
- String
Destination path
- overwrite
- Boolean
True if we want to overwrite the destination file
- cancelToken
- CancellationToken
Cancellation token
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET