CloudFile.UploadFromFile Method (String, FileMode, AccessCondition, FileRequestOptions, OperationContext)
Uploads a file to the File service. If the file already exists on the service, it will be overwritten.
Namespace: Microsoft.WindowsAzure.Storage.File
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute]
public void UploadFromFile(
string path,
FileMode mode,
AccessCondition accessCondition = null,
FileRequestOptions options = null,
OperationContext operationContext = null
)
<DoesServiceRequestAttribute>
Public Sub UploadFromFile (
path As String,
mode As FileMode,
accessCondition As AccessCondition,
options As FileRequestOptions,
operationContext As OperationContext
)
Parameters
path
Type: System.StringThe file providing the content.
mode
Type: System.IO.FileModeA constant that determines how to open the file.
accessCondition
Type: Microsoft.WindowsAzure.Storage.AccessConditionAn AccessCondition object that represents the access conditions for the file.
options
Type: Microsoft.WindowsAzure.Storage.File.FileRequestOptionsA FileRequestOptions object that specifies additional options for the request.
operationContext
Type: Microsoft.WindowsAzure.Storage.OperationContextAn OperationContext object that represents the context for the current operation.
See Also
CloudFile Class
Microsoft.WindowsAzure.Storage.File Namespace
Return to top