Utility.CheckScriptCondition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CheckScriptCondition(String, Context, Session) |
Given the condition string, determines whether the condition is true or false. |
CheckScriptCondition(String, Context, Session, Dictionary<String,String>) |
Given the condition string, determines whether the condition is true or false. |
CheckScriptCondition(String, Context, Session, List<LookupRequestItem>) |
Given the condition string, determines whether the condition is true or false. |
CheckScriptCondition(String, Context, Session)
Given the condition string, determines whether the condition is true or false.
public:
static bool CheckScriptCondition(System::String ^ script, Microsoft::Uii::Csr::Context ^ CurrentContext, Microsoft::Uii::Csr::Session ^ localSession);
public static bool CheckScriptCondition (string script, Microsoft.Uii.Csr.Context CurrentContext, Microsoft.Uii.Csr.Session localSession);
static member CheckScriptCondition : string * Microsoft.Uii.Csr.Context * Microsoft.Uii.Csr.Session -> bool
Public Shared Function CheckScriptCondition (script As String, CurrentContext As Context, localSession As Session) As Boolean
Parameters
- script
- String
Specifies the condition string (interpreted as a javascript expression).
- CurrentContext
- Context
Specifies the context variables to use as input.
- localSession
- Session
Specifies the session object to be used.
Returns
true
if the condition succeeded.
Applies to
CheckScriptCondition(String, Context, Session, Dictionary<String,String>)
Given the condition string, determines whether the condition is true or false.
public:
static bool CheckScriptCondition(System::String ^ script, Microsoft::Uii::Csr::Context ^ CurrentContext, Microsoft::Uii::Csr::Session ^ localSession, System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ list);
public static bool CheckScriptCondition (string script, Microsoft.Uii.Csr.Context CurrentContext, Microsoft.Uii.Csr.Session localSession, System.Collections.Generic.Dictionary<string,string> list);
static member CheckScriptCondition : string * Microsoft.Uii.Csr.Context * Microsoft.Uii.Csr.Session * System.Collections.Generic.Dictionary<string, string> -> bool
Public Shared Function CheckScriptCondition (script As String, CurrentContext As Context, localSession As Session, list As Dictionary(Of String, String)) As Boolean
Parameters
- script
- String
Specifies the condition string (interpreted as a javascript expression).
- CurrentContext
- Context
Specifies the context variables to use as input.
- localSession
- Session
Specifies the session object to be used.
- list
- Dictionary<String,String>
Specifies the additional parameters to be used when evaluating the condition.
Returns
True
if the condition succeeded
Applies to
CheckScriptCondition(String, Context, Session, List<LookupRequestItem>)
Given the condition string, determines whether the condition is true or false.
public:
static bool CheckScriptCondition(System::String ^ script, Microsoft::Uii::Csr::Context ^ CurrentContext, Microsoft::Uii::Csr::Session ^ localSession, System::Collections::Generic::List<Microsoft::Uii::Desktop::Cti::Core::LookupRequestItem ^> ^ list);
public static bool CheckScriptCondition (string script, Microsoft.Uii.Csr.Context CurrentContext, Microsoft.Uii.Csr.Session localSession, System.Collections.Generic.List<Microsoft.Uii.Desktop.Cti.Core.LookupRequestItem> list);
static member CheckScriptCondition : string * Microsoft.Uii.Csr.Context * Microsoft.Uii.Csr.Session * System.Collections.Generic.List<Microsoft.Uii.Desktop.Cti.Core.LookupRequestItem> -> bool
Public Shared Function CheckScriptCondition (script As String, CurrentContext As Context, localSession As Session, list As List(Of LookupRequestItem)) As Boolean
Parameters
- script
- String
Specifies the condition string (interpreted as a javascript expression).
- CurrentContext
- Context
Specifies the context variables to use as input.
- localSession
- Session
Specifies the session object to be used.
- list
- List<LookupRequestItem>
Specifies the additional parametes to be used when evaluating the condition.
Returns
True
if the condition succeeded.