CloudFile.WriteRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteRange(Stream, Int64, String, AccessCondition, FileRequestOptions, OperationContext) |
Writes range to a file. |
WriteRange(Uri, Int64, Int64, Int64, Checksum, AccessCondition, FileRequestOptions, OperationContext) |
Writes range from a source file to this file. |
WriteRange(Stream, Int64, String, AccessCondition, FileRequestOptions, OperationContext)
Writes range to a file.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual void WriteRange (System.IO.Stream rangeData, long startOffset, string contentMD5 = default, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.File.FileRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member WriteRange : System.IO.Stream * int64 * string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
override this.WriteRange : System.IO.Stream * int64 * string * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
Public Overridable Sub WriteRange (rangeData As Stream, startOffset As Long, Optional contentMD5 As String = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional options As FileRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing)
Parameters
- rangeData
- Stream
A stream providing the data.
- startOffset
- Int64
The offset at which to begin writing, in bytes.
- contentMD5
- String
An optional hash value that will be used to set the ContentMD5 property
on the file. May be null
or an empty string.
- accessCondition
- AccessCondition
An AccessCondition object that represents the access conditions for the file. If null
, no condition is used.
- options
- FileRequestOptions
An FileRequestOptions object that specifies additional options for the request.
- operationContext
- OperationContext
An OperationContext object that represents the context for the current operation.
- Attributes
Applies to
WriteRange(Uri, Int64, Int64, Int64, Checksum, AccessCondition, FileRequestOptions, OperationContext)
Writes range from a source file to this file.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual void WriteRange (Uri sourceUri, long sourceOffset, long count, long destOffset, Microsoft.Azure.Storage.Shared.Protocol.Checksum sourceContentChecksum = default, Microsoft.Azure.Storage.AccessCondition sourceAccessCondition = default, Microsoft.Azure.Storage.File.FileRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member WriteRange : Uri * int64 * int64 * int64 * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
override this.WriteRange : Uri * int64 * int64 * int64 * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> unit
Public Overridable Sub WriteRange (sourceUri As Uri, sourceOffset As Long, count As Long, destOffset As Long, Optional sourceContentChecksum As Checksum = Nothing, Optional sourceAccessCondition As AccessCondition = Nothing, Optional options As FileRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing)
Parameters
- sourceOffset
- Int64
The offset at which to begin reading the source, in bytes.
- count
- Int64
The number of bytes to write
- destOffset
- Int64
The offset at which to begin writing, in bytes.
- sourceContentChecksum
- Checksum
A hash value used to ensure transactional integrity. May be null
or Checksum.None
- sourceAccessCondition
- AccessCondition
An AccessCondition object that represents the access conditions for the source file. If null
, no condition is used.
- options
- FileRequestOptions
An FileRequestOptions object that specifies additional options for the request.
- operationContext
- OperationContext
An object that represents the context for the current operation.
- Attributes
Applies to
Azure SDK for .NET