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) |