次の方法で共有


PoolOperations.CopyNodeFileContentToString メソッド

定義

指定したノードから文字列にファイルの内容を読み取ります。

public string CopyNodeFileContentToString (string poolId, string computeNodeId, string filePath, System.Text.Encoding encoding = default, Microsoft.Azure.Batch.GetFileRequestByteRange byteRange = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.CopyNodeFileContentToString : string * string * string * System.Text.Encoding * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> string
Public Function CopyNodeFileContentToString (poolId As String, computeNodeId As String, filePath As String, Optional encoding As Encoding = Nothing, Optional byteRange As GetFileRequestByteRange = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing) As String

パラメーター

poolId
String

コンピューティング ノードを含むプールの ID。

computeNodeId
String

コンピューティング ノードの ID。

filePath
String

取得するファイルのパス。

encoding
Encoding

使用するエンコーディング。 値または null が指定されていない場合は、UTF8 が使用されます。

byteRange
GetFileRequestByteRange

コピーするファイルのセクションを定義するバイト範囲。 省略すると、ファイル全体がダウンロードされます。

additionalBehaviors
IEnumerable<BatchClientBehavior>

の後の BatchClientBehavior Batch サービス要求に適用されるインスタンスの CustomBehaviorsコレクション。

戻り値

ファイルの内容 (文字列として)

適用対象