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


INAClosestFacilitySolver.DefaultTargetFacilityCount Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAClosestFacilitySolver.DefaultTargetFacilityCount Property

The default number of facilities to find.

[Visual Basic .NET]
Public Property DefaultTargetFacilityCount As Integer
[C#]
public int DefaultTargetFacilityCount {get; set;}
[C++]
HRESULT get_DefaultTargetFacilityCount(
  long* Value
);
[C++]
HRESULT put_DefaultTargetFacilityCount(
  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

DefaultTargetFacilityCount specifies up to how many facilities to solve for. Solving for 10 facilities will return at the most 10 closest facilities from each incident. This property sets and gets the number of destinations to find for the NAClosestFacilitySolver.

DefaultTargetFacilityCount is considered �default� because it can be overridden on a feature-by-feature basis by the presence of a non-null value in the TargetFacilityCount field of an individual feature.

DefaultTargetFacilityCount defaults to a value of 1.

See Also

INAClosestFacilitySolver Interface

.NET Snippets

Set Closest Facility Properties

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmNALayerProperties)