Show / Hide Table of Contents

Class SearchArgument

Named argument to a search.

Inheritance
object
SearchArgument
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class SearchArgument

Constructors

| Edit this page View Source

SearchArgument(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
| Edit this page View Source

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 Source

Method

Operator for this search

Declaration
public SearchMethod Method { get; set; }
Property Value
Type Description
SearchMethod
| Edit this page View Source

Operator

Describes how this argument should be logically combined with other arguments

Declaration
public SearchOperator Operator { get; set; }
Property Value
Type Description
SearchOperator
| Edit this page View Source

PropertyName

Name of the search argument or property

Declaration
public string PropertyName { get; set; }
Property Value
Type Description
string
| Edit this page View Source

SearchValue

Value for the search as string

Declaration
public string SearchValue { get; set; }
Property Value
Type Description
string
| Edit this page View Source

SearchValueAsInt

Value for the search as integer

Declaration
public int SearchValueAsInt { get; set; }
Property Value
Type Description
int
  • Edit this page
  • View Source
In this article
  • Constructors
    • SearchArgument(string, SearchMethod, int, SearchOperator)
    • SearchArgument(string, SearchMethod, string, SearchOperator)
  • Properties
    • Method
    • Operator
    • PropertyName
    • SearchValue
    • SearchValueAsInt
Back to top Copyright © www.benday.com | info@benday.com