你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PoolOperations.GetNodeFile 方法

定义

获取有关计算节点上的文件的信息。

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

参数

poolId
String

包含计算节点的池的 ID。

computeNodeId
String

计算节点的 ID。

filePath
String

要检索的文件的路径。

additionalBehaviors
IEnumerable<BatchClientBehavior>

应用于 之后的 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

返回

一个 NodeFile ,包含有关文件的信息,可用于下载文件 (查看 CopyToStream(Stream, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>)) 。

注解

这是一个阻止操作。 有关非阻塞等效项,请参阅 GetNodeFileAsync(String, String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

适用于