This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkScriptEvaluator Interface > INetworkScriptEvaluator.SetExpression Method (ArcObjects .NET 10.4 SDK) |
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
When specifying the preLogic parameter for code with multiple lines, use the CarriageReturn-LineFeed character at the line breaks.