共用方式為


PoolOperations.ListNodeFiles Method

Definition

Enumerates files on the specified compute node.

public Microsoft.Azure.Batch.IPagedEnumerable<Microsoft.Azure.Batch.NodeFile> ListNodeFiles (string poolId, string computeNodeId, bool? recursive = default, Microsoft.Azure.Batch.DetailLevel detailLevel = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.ListNodeFiles : string * string * Nullable<bool> * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> Microsoft.Azure.Batch.IPagedEnumerable<Microsoft.Azure.Batch.NodeFile>
Public Function ListNodeFiles (poolId As String, computeNodeId As String, Optional recursive As Nullable(Of Boolean) = Nothing, Optional detailLevel As DetailLevel = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing) As IPagedEnumerable(Of NodeFile)

Parameters

poolId
String

The id of the pool that contains the compute node.

computeNodeId
String

The id of the compute node.

recursive
Nullable<Boolean>

If true, recursively enumerates all files on the compute node. If false, enumerates only the files in the compute node root directory.

detailLevel
DetailLevel

A DetailLevel used for filtering the list and for controlling which properties are retrieved from the service.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors and detailLevel.

Returns

An IPagedEnumerable<T> that can be used to enumerate files asynchronously or synchronously.

Remarks

This method returns immediately; the file data is retrieved from the Batch service only when the collection is enumerated. Retrieval is non-atomic; file data is retrieved in pages during enumeration of the collection.

Applies to