Partager via


FileSystemOperationsExtensions.RenameAsync Méthode

Définition

Suppriment un fichier ou un répertoire.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileOperationResult> RenameAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string renameFilePath, string destination, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileOperationResult> RenameAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, string destination, System.Threading.CancellationToken cancellationToken = default);
static member RenameAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileOperationResult>
static member RenameAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.FileOperationResult>
<Extension()>
Public Function RenameAsync (operations As IFileSystemOperations, accountName As String, renameFilePath As String, destination As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FileOperationResult)
<Extension()>
Public Function RenameAsync (operations As IFileSystemOperations, accountName As String, path As String, destination As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FileOperationResult)

Paramètres

operations
IFileSystemOperations

Groupe d’opérations pour cette méthode d’extension.

accountName
String

Compte Azure Data Lake Store sur lequel exécuter des opérations de système de fichiers.

renameFilePathpath
String

Chemin d’accès Data Lake Store (commençant par « / ») du fichier ou du répertoire à déplacer/renommer.

destination
String

Chemin d’accès vers lequel déplacer/renommer le fichier ou le dossier

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à