---
title: "Class QueryablePropertyValueExtensions"
slug: "sdk--stylelabs.m.base.querying.linq.queryablepropertyvalueextensions"
abstract: ""
---
# Class QueryablePropertyValueExtensions

Extension methods for [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html).

## Inheritance

object

QueryablePropertyValueExtensions

## Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingLinq

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public static class QueryablePropertyValueExtensions
```

## Methods

### Contains(QueryablePropertyValue, string)

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

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html) | queryablePropertyValue | The property. |
| string | value | The values to filter on. |

#### Returns

| Type | Description |
| --- | --- |
| bool | true if contains the value, false otherwise. |

### EndsWith(QueryablePropertyValue, string)

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

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html) | queryablePropertyValue | The property. |
| string | value | The values to filter on. |

#### Returns

| Type | Description |
| --- | --- |
| bool | true if ends with, false otherwise. |

### In(QueryablePropertyValue, IEnumerable<object>)

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

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html) | value | The property. |
| IEnumerable<>object | values | The values to filter on. |

#### Returns

| Type | Description |
| --- | --- |
| bool | true 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

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html) | value | The property. |
| object | values | The values to filter on. |

#### Returns

| Type | Description |
| --- | --- |
| bool | true 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

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html) | queryablePropertyValue | The property. |
| string | value | The values to filter on. |

#### Returns

| Type | Description |
| --- | --- |
| bool | true if starts with, false otherwise. |
