Share via


ShareClient.CreateIfNotExistsAsync メソッド

定義

オーバーロード

CreateIfNotExistsAsync(IDictionary<String,String>, Nullable<Int32>, CancellationToken)

CreateIfNotExistsAsync(IDictionary<String,String>, Nullable<Int32>, CancellationToken)の操作は、指定されたアカウントに新しい共有を作成します。 同じ名前の共有が既に存在する場合、変更されません。

詳細については、「 共有を作成します

CreateIfNotExistsAsync(ShareCreateOptions, CancellationToken)

CreateIfNotExistsAsync(IDictionary<String,String>, Nullable<Int32>, CancellationToken)の操作は、指定されたアカウントに新しい共有を作成します。 同じ名前の共有が既に存在する場合、変更されません。

詳細については、「 共有を作成します

CreateIfNotExistsAsync(IDictionary<String,String>, Nullable<Int32>, CancellationToken)

ソース:
ShareClient.cs
ソース:
ShareClient.cs

CreateIfNotExistsAsync(IDictionary<String,String>, Nullable<Int32>, CancellationToken)の操作は、指定されたアカウントに新しい共有を作成します。 同じ名前の共有が既に存在する場合、変更されません。

詳細については、「 共有を作成します

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.Models.ShareInfo>> CreateIfNotExistsAsync (System.Collections.Generic.IDictionary<string,string> metadata = default, int? quotaInGB = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateIfNotExistsAsync : System.Collections.Generic.IDictionary<string, string> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.Models.ShareInfo>>
override this.CreateIfNotExistsAsync : System.Collections.Generic.IDictionary<string, string> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.Models.ShareInfo>>
Public Overridable Function CreateIfNotExistsAsync (Optional metadata As IDictionary(Of String, String) = Nothing, Optional quotaInGB As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ShareInfo))

パラメーター

metadata
IDictionary<String,String>

この共有に設定するオプションのカスタム メタデータ。

quotaInGB
Nullable<Int32>

省略可能。 共有の最大サイズ (バイト単位)。 指定されていない場合は、サービスの既定値を使用します。

cancellationToken
CancellationToken

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

戻り値

Response<T>新しく作成された共有を記述する 。 共有が既に存在する場合は 。 null

注釈

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

適用対象

CreateIfNotExistsAsync(ShareCreateOptions, CancellationToken)

ソース:
ShareClient.cs
ソース:
ShareClient.cs

CreateIfNotExistsAsync(IDictionary<String,String>, Nullable<Int32>, CancellationToken)の操作は、指定されたアカウントに新しい共有を作成します。 同じ名前の共有が既に存在する場合、変更されません。

詳細については、「 共有を作成します

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.Models.ShareInfo>> CreateIfNotExistsAsync (Azure.Storage.Files.Shares.Models.ShareCreateOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateIfNotExistsAsync : Azure.Storage.Files.Shares.Models.ShareCreateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.Models.ShareInfo>>
override this.CreateIfNotExistsAsync : Azure.Storage.Files.Shares.Models.ShareCreateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.Models.ShareInfo>>
Public Overridable Function CreateIfNotExistsAsync (options As ShareCreateOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ShareInfo))

パラメーター

options
ShareCreateOptions

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

cancellationToken
CancellationToken

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

戻り値

Response<T>新しく作成された共有を記述する 。 共有が既に存在する場合は 。 null

注釈

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

適用対象