CloudAppendBlob.UploadFromByteArray メソッド

定義

バイト配列の内容を追加 BLOB にアップロードします。 BLOB が既に存在する場合は、上書きされます。 単一ライターのシナリオにのみ推奨されます。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual void UploadFromByteArray (byte[] buffer, int index, int count, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member UploadFromByteArray : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
override this.UploadFromByteArray : byte[] * int * int * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
Public Overridable Sub UploadFromByteArray (buffer As Byte(), index As Integer, count As Integer, Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing)

パラメーター

buffer
Byte[]

バイト配列。

index
Int32

BLOB へのバイトのアップロードを開始する位置を示す buffer 内のバイト オフセットです。インデックス番号は 0 から始まります。

count
Int32

BLOB に書き込むバイト数です。

accessCondition
AccessCondition

要求を実行するために満たす必要のある条件を表す AccessCondition オブジェクトです。

options
BlobRequestOptions

要求の追加オプションを指定する BlobRequestOptions オブジェクトです。 の場合 null、既定のオプションが要求に適用されます。

operationContext
OperationContext

現在の操作のコンテキストを表す OperationContext オブジェクトです。

実装

属性

注釈

このメソッドは、単一ライターのシナリオでのみ使用します。 内部的には、このメソッドは append-offset 条件付きヘッダーを使用してブロックの重複を回避するため、マルチライター シナリオで問題が発生する可能性があります。 シングルライター シナリオがある場合は、このフラグを にtrue設定することがシナリオで許容されるかどうかを判断する方法を参照してくださいAbsorbConditionalErrorsOnRetry。 既に存在する追加 BLOB にデータを追加するには、「」を参照してください AppendFromByteArray(Byte[], Int32, Int32, AccessCondition, BlobRequestOptions, OperationContext)

適用対象