Show / Hide Table of Contents

# Class AttributeNodeFilter

Attribute node filter.

The filter will evaluate to true if a node has all specified attributes with corresponding values.

You can set node attributes using UserAttributes property.

##### Inheritance

System.Object
AttributeNodeFilter

##### Implements

IClusterNodeFilter

##### Inherited Members

System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Cluster

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public sealed class AttributeNodeFilter : IClusterNodeFilter

### Constructors

#### AttributeNodeFilter()

Initializes a new instance of AttributeNodeFilter.

##### Declaration

    public AttributeNodeFilter()

#### AttributeNodeFilter(String, Object)

Initializes a new instance of AttributeNodeFilter.

##### Declaration

    public AttributeNodeFilter(string attrName, object attrValue)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | attrName | Attribute name.
System.Object | attrValue | Attribute value.

### Properties

#### Attributes

Attributes dictionary match.

##### Declaration

    public IDictionary<string, object> Attributes { get; set; }

##### Property Value

Type | Description
--- | ---
System.Collections.Generic.IDictionary<System.String, System.Object> |

### Methods

#### Invoke(IClusterNode)

Returns a value indicating whether provided node satisfies this predicate.

##### Declaration

    public bool Invoke(IClusterNode node)

##### Parameters

Type | Name | Description
--- | --- | ---
IClusterNode | node | Cluster node.

##### Returns

Type | Description
--- | ---
System.Boolean | Value indicating whether provided node satisfies this predicate.

### Implements

IClusterNodeFilter