---
title: "Class IdentifierQueryFilter"
slug: "sdk--stylelabs.m.base.querying.filters.identifierqueryfilter"
abstract: ""
---
# Class IdentifierQueryFilter

Filters on entities of specified definition(s).

## Inheritance

object

[QueryFilter](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.queryfilter.html)

IdentifierQueryFilter

## Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingFilters

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class IdentifierQueryFilter : QueryFilter
```

## Properties

### Operator

Gets or sets the operator used to compare the identifier(s). Must be either [Equals](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.comparisonoperator.html) or [NotEquals](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.comparisonoperator.html).

#### Declaration

```csharp
public ComparisonOperator Operator { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [ComparisonOperator](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.comparisonoperator.html) |  |

### Type

Gets the type of the filter.

#### Declaration

```csharp
public override FilterType Type { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [FilterType](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.filtertype.html) |  |

#### Overrides

[QueryFilter.Type](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.queryfilter.html)

### Value

Gets or sets the identifier to filter on.

#### Declaration

```csharp
public string Value { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### Values

Gets or sets the identifiers to filter on. If multiple values are specified, the filter will combine them using "OR" (essentially an IN-clause).

#### Declaration

```csharp
public IEnumerable<string> Values { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IEnumerable<>string |  |

## Methods

### Accept(IFilterVisitor)

Accepts a query visitor.

#### Declaration

```csharp
public override void Accept(IFilterVisitor visitor)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IFilterVisitor](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.ifiltervisitor.html) | visitor | The visitor to accept. |

#### Overrides

[QueryFilter.Accept(IFilterVisitor)](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.filters.queryfilter.html)
