ICloudBlob.UploadFromFile Method (String, FileMode, AccessCondition, BlobRequestOptions, OperationContext)
Uploads a file to the Windows Azure Blob Service.
Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
void UploadFromFile(
string path,
FileMode mode,
AccessCondition accessCondition = null,
BlobRequestOptions options = null,
OperationContext operationContext = null
)
Sub UploadFromFile (
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.
See Also
ICloudBlob Interface
Microsoft.WindowsAzure.Storage.Blob Namespace
Return to top