1. Stylelabs.M.Base.Querying.Linq

Class QueryablePropertyValueExtensions

Extension methods for QueryablePropertyValue.

Inheritance

object

QueryablePropertyValueExtensions

Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingLinq

Assembly: Stylelabs.M.Sdk.dll

Syntax

public static class QueryablePropertyValueExtensions

Methods

Contains(QueryablePropertyValue, string)

The value of the (string) property must be contain the specified value.

Declaration

public static bool Contains(this QueryablePropertyValue queryablePropertyValue, string value)

Parameters

TypeNameDescription
QueryablePropertyValuequeryablePropertyValueThe property.
stringvalueThe values to filter on.

Returns

TypeDescription
booltrue if contains the value, false otherwise.

EndsWith(QueryablePropertyValue, string)

The value of the (string) property must end with the specified value.

Declaration

public static bool EndsWith(this QueryablePropertyValue queryablePropertyValue, string value)

Parameters

TypeNameDescription
QueryablePropertyValuequeryablePropertyValueThe property.
stringvalueThe values to filter on.

Returns

TypeDescription
booltrue if ends with, false otherwise.

In(QueryablePropertyValue, IEnumerable)

The value of the property must be at least one of the specified values.

Declaration

public static bool In(this QueryablePropertyValue value, IEnumerable<object> values)

Parameters

TypeNameDescription
QueryablePropertyValuevalueThe property.
IEnumerable<>objectvaluesThe values to filter on.

Returns

TypeDescription
booltrue if the value is in the collection, false otherwise.

In(QueryablePropertyValue, params object[])

The value of the property must be at least one of the specified values.

Declaration

public static bool In(this QueryablePropertyValue value, params object[] values)

Parameters

TypeNameDescription
QueryablePropertyValuevalueThe property.
objectvaluesThe values to filter on.

Returns

TypeDescription
booltrue if the value is in the collection, false otherwise.

StartsWith(QueryablePropertyValue, string)

The value of the (string) property must start with the specified value.

Declaration

public static bool StartsWith(this QueryablePropertyValue queryablePropertyValue, string value)

Parameters

TypeNameDescription
QueryablePropertyValuequeryablePropertyValueThe property.
stringvalueThe values to filter on.

Returns

TypeDescription
booltrue if starts with, false otherwise.

If you have suggestions for improving this article, let us know!