This document is archived and information here might be outdated.  Recommended version.


INALocationAllocationSolver.NumberFacilitiesToLocate Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocationAllocationSolver Interface > INALocationAllocationSolver.NumberFacilitiesToLocate Property
ArcGIS Developer Help

INALocationAllocationSolver.NumberFacilitiesToLocate Property

Determines how many facilities will be present in the solution.

[Visual Basic .NET]
Public Property NumberFacilitiesToLocate As Integer
[C#]
public int NumberFacilitiesToLocate {get; set;}
[C++]
HRESULT get_NumberFacilitiesToLocate(
  System.Int32* Value
);
[C++]
HRESULT put_NumberFacilitiesToLocate(
  long Value
);
[C++]
Parameters
Value [out, retval]

Value is a parameter of type long* Value [in]
Value is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

The NumberFacilitiesToLocate specifies how many facilities to locate from the existing facilities. Solving for 10 facilities will select the 10 best sites from the existing facilities. Facilities with esriNALocationAllocationFacilityType of esriNALAFTRequired will be chosen before facilities with a status of esriNALAFTCandidate are selected. An error is returned if the number of facilities to locate is less than the number of required facilities.

See Also

INALocationAllocationSolver Interface

.NET Samples

Location-allocation solver ArcGIS Network Analyst extension Engine application