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


INetworkScriptEvaluator.SetExpression Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkScriptEvaluator.SetExpression Method

Sets the VBScript calculator expression and pre-logic used to derive the values for this network evaluator.

[Visual Basic .NET]
Public Sub SetExpression ( _
    ByVal Expression As String, _
    ByVal preLogic As String _
)
[C#]
public void SetExpression (
    string Expression,
    string preLogic
);
[C++]
HRESULT SetExpression(
  BSTR Expression,
  BSTR preLogic
);
[C++]

Parameters Expression [in] Expression is a parameter of type BSTR preLogic [in] preLogic is a parameter of type BSTR

Product Availability

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

Remarks

When specifying the preLogic parameter for code with multiple lines, use the CarriageReturn-LineFeed character at the line breaks.

See Also

INetworkScriptEvaluator Interface