Sets the maximum number of instances per zone.
On partitioned topology with backups topology, controls that a primary and a backup won't run
on the same zone if set to 1. Note, for each zone this will have to be set.
On a non partitioned with backups topology, controls the maximum number of instances running on
he same zone.

C# | Visual Basic | Visual C++ | J# |
public virtual SpaceDeployment MaxInstancesPerZone( string zone, int maxInstancesPerZone )
Public Overridable Function MaxInstancesPerZone ( _ zone As String, _ maxInstancesPerZone As Integer _ ) As SpaceDeployment
public: virtual SpaceDeployment^ MaxInstancesPerZone( String^ zone, int maxInstancesPerZone )
public SpaceDeployment MaxInstancesPerZone( String zone, int maxInstancesPerZone )

The SpaceDeployment set with the specified maximum instances per zone for a specific zone.