Azure SDK v2.1.0.0 を使用しています。DownloadRangeToByteArray という CloudBlockBlob クラスのメソッドを見つけましたが、残念ながらオンライン MSDN でそれに関するドキュメントを見つけることができませんか?
その使用法、制約、スレッドの安全性について何か考えはありますか?
Azure SDK v2.1.0.0 を使用しています。DownloadRangeToByteArray という CloudBlockBlob クラスのメソッドを見つけましたが、残念ながらオンライン MSDN でそれに関するドキュメントを見つけることができませんか?
その使用法、制約、スレッドの安全性について何か考えはありますか?
Azure ストレージ クライアント ライブラリの GitHub リポジトリからhttps://github.com/WindowsAzure/azure-sdk-for-net/blob/583799d5238ffb72b8d9244604558a83ed4372f8/microsoft-azure-api/Services/Storage/Lib/DotNetCommon/Blob/ICloudBlob.cs :
/// <summary>
/// Downloads the contents of a blob to a byte array.
/// </summary>
/// <param name="target">The target byte array.</param>
/// <param name="index">The starting offset in the byte array.</param>
/// <param name="blobOffset">The starting offset of the data range, in bytes.</param>
/// <param name="length">The length of the data range, in bytes.</param>
/// <param name="accessCondition">An <see cref="AccessCondition"/> object that represents the access conditions for the blob.</param>
/// <param name="options">A <see cref="BlobRequestOptions"/> object that specifies any additional options for the request.</param>
/// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
/// <returns>The total number of bytes read into the buffer.</returns>
int DownloadRangeToByteArray(byte[] target, int index, long? blobOffset, long? length, AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null);
遅れて申し訳ありません。内部の公開チェーンに問題があり、ドキュメントが保留されていました。彼らはまもなく出てくるはずです。
それまでの間、上記の GitHub 情報は正しいですが、このメソッドの考え方は、特定のインデックスのバイト配列に直接ダウンロードするために (ブロブ全体ではなく) ブロブ バイトの範囲を指定できるようにすることです。