Version

Matches Method (ContainedInListCondition)

Returns whether the specified value is contained within the list referenced by the List property, using the criteria defined by the value of the ListItemMatchMode property.
Syntax
'Declaration
 
Public Function Matches( _
   ByVal value As Object _
) As Boolean
public bool Matches( 
   object value
)

Parameters

value
The value to test.

Return Value

True if the specified value is contained within the list.
Remarks

If the specified value is a ValueListItem, the item's DataValue or the DisplayText is used, depending on the value of the ListItemMatchMode property. In all other cases, the value itself is used for comparison when ListItemMatchMode is set to 'DataValue', and the value's string representation is used for comparison when ListItemMatchMode is set to 'DisplayText'.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also