Udostępnij za pośrednictwem


FilesOperationsExtensions.CreateOrUpdateAsync Method

Definition

The PUT method creates a new file or updates an existing one.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataMigration.Models.ProjectFile> CreateOrUpdateAsync (this Microsoft.Azure.Management.DataMigration.IFilesOperations operations, string groupName, string serviceName, string projectName, string fileName, Microsoft.Azure.Management.DataMigration.Models.ProjectFile parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DataMigration.IFilesOperations * string * string * string * string * Microsoft.Azure.Management.DataMigration.Models.ProjectFile * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataMigration.Models.ProjectFile>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IFilesOperations, groupName As String, serviceName As String, projectName As String, fileName As String, parameters As ProjectFile, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ProjectFile)

Parameters

operations
IFilesOperations

The operations group for this extension method.

groupName
String

Name of the resource group

serviceName
String

Name of the service

projectName
String

Name of the project

fileName
String

Name of the File

parameters
ProjectFile
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to