Share via


Placement.Preferences Property

Definition

Gets or sets the preferences for the placement strategy in the Swarm service nodes.

[YamlDotNet.Serialization.YamlMember(Alias="preferences")]
public System.Collections.Generic.List<System.Collections.Generic.Dictionary<string,string>>? Preferences { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="preferences")>]
member this.Preferences : System.Collections.Generic.List<System.Collections.Generic.Dictionary<string, string>> with get, set
Public Property Preferences As List(Of Dictionary(Of String, String))

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The preferences configuration is represented as a list of dictionaries, where each dictionary specifies key-value pairs that define custom placement preferences for the service.

Applies to