Class Filter
Class representing a REST API filter
See Tableau API Reference for more details.
Namespace: Tableau.Migration.Net.Rest.Filtering
Assembly: Tableau.Migration.dll
Syntax
public class Filter
Constructors
Filter(string, string, IEnumerable<DateTime>)
Creates a new Filter instance.
Declaration
public Filter(string field, string @operator, IEnumerable<DateTime> values)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
string | operator | The filter's operator. |
IEnumerable<DateTime> | values | The filter's values. |
Filter(string, string, IEnumerable<string>)
Creates a new Filter instance.
Declaration
public Filter(string field, string @operator, IEnumerable<string> values)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
string | operator | The filter's operator. |
IEnumerable<string> | values | The filter's values. |
Filter(string, string, DateTime)
Creates a new Filter instance.
Declaration
public Filter(string field, string @operator, DateTime value)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
string | operator | The filter's operator. |
DateTime | value | The filter's value. |
Filter(string, string, object)
Creates a new Filter instance.
Declaration
public Filter(string field, string @operator, object value)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
string | operator | The filter's operator. |
object | value | The filter's value. |
Filter(string, string, string)
Creates a new Filter instance.
Declaration
public Filter(string field, string @operator, string value)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
string | operator | The filter's operator. |
string | value | The filter's value. |
Filter(string, FilterOperator, IEnumerable<DateTime>)
Creates a new Filter instance.
Declaration
public Filter(string field, FilterOperator @operator, IEnumerable<DateTime> values)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
FilterOperator | operator | The filter's operator. |
IEnumerable<DateTime> | values | The filter's values. |
Filter(string, FilterOperator, IEnumerable<string>)
Creates a new Filter instance.
Declaration
public Filter(string field, FilterOperator @operator, IEnumerable<string> values)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
FilterOperator | operator | The filter's operator. |
IEnumerable<string> | values | The filter's values. |
Filter(string, FilterOperator, DateTime)
Creates a new Filter instance.
Declaration
public Filter(string field, FilterOperator @operator, DateTime value)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
FilterOperator | operator | The filter's operator. |
DateTime | value | The filter's value. |
Filter(string, FilterOperator, string)
Creates a new Filter instance.
Declaration
public Filter(string field, FilterOperator @operator, string value)
Parameters
Type | Name | Description |
---|---|---|
string | field | The filter's field. |
FilterOperator | operator | The filter's operator. |
string | value | The filter's value. |
Properties
Expression
Gets the filter's expression for use in query strings;
Declaration
public string Expression { get; }
Property Value
Type | Description |
---|---|
string |
Field
Gets the filter's field.
Declaration
public string Field { get; }
Property Value
Type | Description |
---|---|
string |
Operator
Gets the filter's operator.
Declaration
public string Operator { get; }
Property Value
Type | Description |
---|---|
string |
Value
Gets the filter's value.
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
object |
Methods
Equals(object?)
Indicates whether this value and a specified value are equal.
Declaration
public override bool Equals(object? other)
Parameters
Type | Name | Description |
---|---|---|
object | other | The value to compare the current value. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
GetHashCode()
Returns the hash code for this value.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer hash code. |