Utility.CheckScriptCondition Method (String, Context, Session, Dictionary)
Given the condition string, determines whether the condition is true or false.
Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)
Usage
'Usage
Dim script As String
Dim CurrentContext As Context
Dim localSession As Session
Dim list As Dictionary(Of String, String)
Dim returnValue As Boolean
returnValue = Utility.CheckScriptCondition(script, CurrentContext, localSession, list)
Syntax
'Declaration
Public Shared Function CheckScriptCondition ( _
script As String, _
CurrentContext As Context, _
localSession As Session, _
list As Dictionary(Of String, String) _
) As Boolean
public static bool CheckScriptCondition (
string script,
Context CurrentContext,
Session localSession,
Dictionary<string,string> list
)
public:
static bool CheckScriptCondition (
String^ script,
Context^ CurrentContext,
Session^ localSession,
Dictionary<String^, String^>^ list
)
public static boolean CheckScriptCondition (
String script,
Context CurrentContext,
Session localSession,
Dictionary<String,String> list
)
public static function CheckScriptCondition (
script : String,
CurrentContext : Context,
localSession : Session,
list : Dictionary<String,String>
) : boolean
Parameters
- script
Specifies the condition string (interpreted as a javascript expression).
- CurrentContext
Specifies the context variables to use as input.
- localSession
Specifies the session object to be used.
- list
Specifies the additional parameters to be used when evaluating the condition.
Return Value
True if the condition succeeded
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
Utility Class
Utility Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.