AdlsClient.GetAppendStreamAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronous API that returns the stream to write data to a file in ADLS. The file is opened with exclusive access - any attempt to open the same file for append will fail while this stream is open.
Threading: The returned stream is not thread-safe.
public virtual System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream> GetAppendStreamAsync (string filename, System.Threading.CancellationToken cancelToken = default);
abstract member GetAppendStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream>
override this.GetAppendStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream>
Public Overridable Function GetAppendStreamAsync (filename As String, Optional cancelToken As CancellationToken = Nothing) As Task(Of AdlsOutputStream)
Parameters
- filename
- String
File name
- cancelToken
- CancellationToken
CancellationToken to cancel the request
Returns
Output stream
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET