FileSystemOperationsExtensions.CreateAsync Method (IFileSystemOperations, String, Stream)
Creates the file specified in the link that was returned from BeginCreate.
Namespace: Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly: Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)
Syntax
public static Task<AzureOperationResponse> CreateAsync(
this IFileSystemOperations operations,
string fileCreateRequestLink,
Stream streamContents
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ CreateAsync(
IFileSystemOperations^ operations,
String^ fileCreateRequestLink,
Stream^ streamContents
)
static member CreateAsync :
operations:IFileSystemOperations *
fileCreateRequestLink:string *
streamContents:Stream -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function CreateAsync (
operations As IFileSystemOperations,
fileCreateRequestLink As String,
streamContents As Stream
) As Task(Of AzureOperationResponse)
Parameters
operations
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperationsReference to the Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperations.
fileCreateRequestLink
Type: System.StringRequired. The link to the file to create including all required parameters.
streamContents
Type: System.IO.StreamRequired. The file contents to include when creating the file. This parameter is required, however it can be an empty stream. Just not null.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace
Return to top