共用方式為


ServiceResourcePropertiesBase Constructors

Definition

Overloads

ServiceResourcePropertiesBase()

Initializes a new instance of the ServiceResourcePropertiesBase class.

ServiceResourcePropertiesBase(String, IList<ServiceCorrelationDescription>, IList<ServiceLoadMetricDescription>, IList<ServicePlacementPolicyDescription>, String)

Initializes a new instance of the ServiceResourcePropertiesBase class.

ServiceResourcePropertiesBase()

Initializes a new instance of the ServiceResourcePropertiesBase class.

public ServiceResourcePropertiesBase ();
Public Sub New ()

Applies to

ServiceResourcePropertiesBase(String, IList<ServiceCorrelationDescription>, IList<ServiceLoadMetricDescription>, IList<ServicePlacementPolicyDescription>, String)

Initializes a new instance of the ServiceResourcePropertiesBase class.

public ServiceResourcePropertiesBase (string placementConstraints = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceCorrelationDescription> correlationScheme = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceLoadMetricDescription> serviceLoadMetrics = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServicePlacementPolicyDescription> servicePlacementPolicies = default, string defaultMoveCost = default);
new Microsoft.Azure.Management.ServiceFabric.Models.ServiceResourcePropertiesBase : string * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceCorrelationDescription> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServiceLoadMetricDescription> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabric.Models.ServicePlacementPolicyDescription> * string -> Microsoft.Azure.Management.ServiceFabric.Models.ServiceResourcePropertiesBase
Public Sub New (Optional placementConstraints As String = Nothing, Optional correlationScheme As IList(Of ServiceCorrelationDescription) = Nothing, Optional serviceLoadMetrics As IList(Of ServiceLoadMetricDescription) = Nothing, Optional servicePlacementPolicies As IList(Of ServicePlacementPolicyDescription) = Nothing, Optional defaultMoveCost As String = Nothing)

Parameters

placementConstraints
String

The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".

correlationScheme
IList<ServiceCorrelationDescription>

A list that describes the correlation of the service with other services.

serviceLoadMetrics
IList<ServiceLoadMetricDescription>

The service load metrics is given as an array of ServiceLoadMetricDescription objects.

servicePlacementPolicies
IList<ServicePlacementPolicyDescription>

A list that describes the correlation of the service with other services.

defaultMoveCost
String

Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'

Applies to