ArcObjects Library Reference (DataSourcesFile)  

ISMRouterSetup.SetRestriction Method

Sets a restriction to be used by the route solver.

[Visual Basic .NET]
Public Sub SetRestriction ( _
    ByVal pRestriction As SMRestriction _
)
[C#]
public void SetRestriction (
    SMRestriction pRestriction
);
[C++]
HRESULT SetRestriction(
  ISMRestriction* pRestriction
);
[C++]

Parameters

pRestriction [in]

  pRestriction is a parameter of type ISMRestriction

Product Availability

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

Remarks

The SetRestriction method can be called multiple times to set multiple restrictions on the route solver.

See Also

ISMRouterSetup Interface