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


ISMRestriction.Type Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesFile)  

ISMRestriction.Type Property

Restriction type.

[Visual Basic .NET]
Public Property Type As esriSMRestrictionType
[C#]
public esriSMRestrictionType Type {get; set;}
[C++]
HRESULT get_Type(
  esriSMRestrictionType* pVal
);
[C++]
HRESULT put_Type(
  esriSMRestrictionType pVal
);
[C++]

Parameters pVal [out, retval]
pVal is a parameter of type esriSMRestrictionType pVal [in]
pVal is a parameter of type esriSMRestrictionType

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The restriction type can be Strict or Relaxed. Strict restrictions can never be violated by the solver, while Relaxed restrictions can be violated if there is no other way to calculate a route.

See Also

ISMRestriction Interface

.NET Samples

StreetMap routing (Code Files: RestrictionsForm)