NodeFile.ReadAsString(Encoding, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>) Method

Definition

Blocking call to return the contents of the file as a string.

public string ReadAsString (System.Text.Encoding encoding = null, Microsoft.Azure.Batch.GetFileRequestByteRange byteRange = null, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = null);
member this.ReadAsString : System.Text.Encoding * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> string

Parameters

encoding
Encoding

The encoding used to interpret the file data. If no value or null is specified, UTF8 is used.

byteRange
GetFileRequestByteRange

The file byte range to retrieve. If null, the entire file is retrieved.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied after the CustomBehaviors on the current object.

Returns

String

A string containing the contents of the file.

Applies to