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


ISMRouterSetup2.SetRestriction Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesFile > ESRI.ArcGIS.DataSourcesFile > Interfaces > IS > ISMRouterSetup2 Interface > ISMRouterSetup2.SetRestriction Method
ArcGIS Developer Help

ISMRouterSetup2.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.

See Also

ISMRouterSetup2 Interface

.NET Samples

StreetMap routing