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

BatchAffinityInfo(String) Constructor

Definition

Initializes a new instance of BatchAffinityInfo.

public BatchAffinityInfo(string affinityId);
new Azure.Compute.Batch.BatchAffinityInfo : string -> Azure.Compute.Batch.BatchAffinityInfo
Public Sub New (affinityId As String)

Parameters

affinityId
String

An opaque string representing the location of a Compute Node or a Task that has run previously. You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere.

Exceptions

affinityId is null.

Applies to