M-Files API 23.11.13135.0
SetPropertyValueExpression Method
Expression Object : SetPropertyValueExpression Method
Identifies the searched property value.

Defines an optional data function for modifying the expression result. The data function availability depends on the evaluated data type.

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

Description
Sets the PropertyValue expression.
Syntax
Visual Basic
Public Sub SetPropertyValueExpression( _
   ByVal PropertyDef As Long, _
   ByVal PCBehavior As MFParentChildBehavior, _
   Optional ByVal DataFunctionCall As DataFunctionCall = 0 _
) 
Parameters
PropertyDef
Identifies the searched property value.
PCBehavior
ValueDescription
MFParentChildBehaviorIncludeChildValuesAccepts matches to child values as well.
MFParentChildBehaviorIncludeParentValuesAccepts matches to parent values as well.
MFParentChildBehaviorNoneNo special behavior.
DataFunctionCall

Defines an optional data function for modifying the expression result. The data function availability depends on the evaluated data type.

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

Remarks
The property value expression is used to evaluate the property value of an object. The evaluated property is identified by the property definition ID. The target value (the right-hand operand) is assigned to the TypedValue object encapsulated in the parent SearchCondition object. The type of the value should match the type of property definition.
See Also

Expression Object  | Expression Members