IFileSystemOperations.CreateAsync Method (String, Stream, CancellationToken)

 

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

Task<AzureOperationResponse> CreateAsync(
    string fileCreateRequestLink,
    Stream streamContents,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ CreateAsync(
    String^ fileCreateRequestLink,
    Stream^ streamContents,
    CancellationToken cancellationToken
)
abstract CreateAsync : 
        fileCreateRequestLink:string *
        streamContents:Stream *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function CreateAsync (
    fileCreateRequestLink As String,
    streamContents As Stream,
    cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

  • fileCreateRequestLink
    Type: System.String

    The link to the file to create including all required parameters.

  • streamContents
    Type: System.IO.Stream

    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

IFileSystemOperations Interface
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top