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

ComputeBatchModelFactory.BatchNodeInfo Method

Definition

Initializes a new instance of BatchNodeInfo.

public static Azure.Compute.Batch.BatchNodeInfo BatchNodeInfo (string affinityId = default, string nodeUrl = default, string poolId = default, string nodeId = default, string taskRootDirectory = default, string taskRootDirectoryUrl = default);
static member BatchNodeInfo : string * string * string * string * string * string -> Azure.Compute.Batch.BatchNodeInfo
Public Shared Function BatchNodeInfo (Optional affinityId As String = Nothing, Optional nodeUrl As String = Nothing, Optional poolId As String = Nothing, Optional nodeId As String = Nothing, Optional taskRootDirectory As String = Nothing, Optional taskRootDirectoryUrl As String = Nothing) As BatchNodeInfo

Parameters

affinityId
String

An identifier for the Node on which the Task ran, which can be passed when adding a Task to request that the Task be scheduled on this Compute Node.

nodeUrl
String

The URL of the Compute Node on which the Task ran.

poolId
String

The ID of the Pool on which the Task ran.

nodeId
String

The ID of the Compute Node on which the Task ran.

taskRootDirectory
String

The root directory of the Task on the Compute Node.

taskRootDirectoryUrl
String

The URL to the root directory of the Task on the Compute Node.

Returns

A new BatchNodeInfo instance for mocking.

Applies to