CloudAppendBlob.AppendFromFile Method (String, FileMode, AccessCondition, BlobRequestOptions, OperationContext)
Appends a file to an append blob. Recommended only for single-writer scenarios.
Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute]
public void AppendFromFile(
string path,
FileMode mode,
AccessCondition accessCondition = null,
BlobRequestOptions options = null,
OperationContext operationContext = null
)
<DoesServiceRequestAttribute>
Public Sub AppendFromFile (
path As String,
mode As FileMode,
accessCondition As AccessCondition,
options As BlobRequestOptions,
operationContext As OperationContext
)
Parameters
path
Type: System.StringA string containing the file path providing the blob content.
mode
Type: System.IO.FileModeA FileMode enumeration value that specifies how to open the file.
accessCondition
Type: Microsoft.WindowsAzure.Storage.AccessConditionAn AccessCondition object that represents the condition that must be met in order for the request to proceed.
options
Type: Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptionsA BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.
operationContext
Type: Microsoft.WindowsAzure.Storage.OperationContextAn OperationContext object that represents the context for the current operation.
Remarks
Use this method only in single-writer scenarios. Internally, this method uses the append-offset conditional header to avoid duplicate blocks, which may cause problems in multiple-writer scenarios. If you have a single-writer scenario, see AbsorbConditionalErrorsOnRetry to determine whether setting this flag to true is acceptable for your scenario.
See Also
CloudAppendBlob Class
Microsoft.WindowsAzure.Storage.Blob Namespace
Return to top