# OpcContentFilter Class

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcContentFilter Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Represents a content filter, which consists of elements applying an operator to their operands.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public class OpcContentFilter
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Class OpcContentFilter
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcContentFilter**

## Remarks

A filter can also be created by combining elements using the operators &amp; and | of [OpcContentFilterElement](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontentfilterelement/).

## Constructors

| Name | Description |
|---|---|
| [OpcContentFilter](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontentfilter/members#opccontentfilter)<span class="api-meta">2 overloads</span> | Initializes a new instance of the OpcContentFilter class using the `elements` specified. |

## Properties

| Name | Description |
|---|---|
| [Elements](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontentfilter/members#elements) | Gets the elements of the filter. |

## Methods

| Name | Description |
|---|---|
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontentfilter/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the filter. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
