CloudBlob.OpenRead メソッド

定義

BLOB から読み取るためのストリームを開きます。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.IO.Stream OpenRead (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 OpenRead : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.IO.Stream
override this.OpenRead : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.IO.Stream
Public Overridable Function OpenRead (Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Stream

パラメーター

accessCondition
AccessCondition

要求を実行するために満たす必要のある条件を表す AccessCondition オブジェクトです。 null の場合、条件は使用されません。

options
BlobRequestOptions

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

operationContext
OperationContext

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

戻り値

Stream BLOB からの読み取りに使用するオブジェクト。

属性

注釈

このメソッドは常に、 の内部で メソッドを FetchAttributes(AccessCondition, BlobRequestOptions, OperationContext) 呼び出します。

StreamMinimumReadSizeInBytesストリームからの読み取り時にバッファーする最小バイト数を指定するには、このメソッドを呼び出す前に プロパティを設定します。 値は 16 KB 以上である必要があります。

適用対象