Class SearchArgument
Named argument to a search.
Inherited Members
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class SearchArgument
Constructors
| Edit this page View SourceSearchArgument(string, SearchMethod, int, SearchOperator)
Constructor when the argument value is an int
Declaration
public SearchArgument(string propertyName, SearchMethod method, int searchValue, SearchOperator addAsOperator = SearchOperator.And)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | Name of the property or search argument |
| SearchMethod | method | Operator for the search |
| int | searchValue | Value for this argument |
| SearchOperator | addAsOperator | Describes how this argument value should be logically combined with other arguments. And or Or. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
SearchArgument(string, SearchMethod, string, SearchOperator)
Constructor when the argument value is a string
Declaration
public SearchArgument(string propertyName, SearchMethod method, string searchValue, SearchOperator addAsOperator = SearchOperator.And)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | Name of the property or search argument |
| SearchMethod | method | Operator for the search |
| string | searchValue | Value for this argument |
| SearchOperator | addAsOperator | Describes how this argument value should be logically combined with other arguments. And or Or. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
Properties
| Edit this page View SourceMethod
Operator for this search
Declaration
public SearchMethod Method { get; set; }
Property Value
| Type | Description |
|---|---|
| SearchMethod |
Operator
Describes how this argument should be logically combined with other arguments
Declaration
public SearchOperator Operator { get; set; }
Property Value
| Type | Description |
|---|---|
| SearchOperator |
PropertyName
Name of the search argument or property
Declaration
public string PropertyName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SearchValue
Value for the search as string
Declaration
public string SearchValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SearchValueAsInt
Value for the search as integer
Declaration
public int SearchValueAsInt { get; set; }
Property Value
| Type | Description |
|---|---|
| int |