次の方法で共有


DataLakePathClient.CreateAsync メソッド

定義

操作により CreateAsync(PathResourceType, DataLakePathCreateOptions, CancellationToken) 、ファイルまたはディレクトリが作成されます。 パスが既に存在する場合は、上書きされます。 既存のパスを上書きしない場合は、API の使用を CreateIfNotExistsAsync(PathResourceType, DataLakePathCreateOptions, CancellationToken) 検討してください。

詳細については、「https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create」を参照してください。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.PathInfo>> CreateAsync (Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAsync : Azure.Storage.Files.DataLake.Models.PathResourceType * Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.PathInfo>>
override this.CreateAsync : Azure.Storage.Files.DataLake.Models.PathResourceType * Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.PathInfo>>
Public Overridable Function CreateAsync (resourceType As PathResourceType, Optional options As DataLakePathCreateOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PathInfo))

パラメーター

resourceType
PathResourceType

このパスのリソースの種類 - ファイルまたはディレクトリ。

options
DataLakePathCreateOptions

省略可能なパラメーター。

cancellationToken
CancellationToken

操作を取り消す必要がある通知を伝達する場合は省略可能 CancellationToken です。

戻り値

Response<T>新しく作成されたパスを記述する 。

注釈

RequestFailedExceptionエラーが発生すると、 がスローされます。

適用対象