Represents an strategy for matching strings using "like".

The following tables list the members exposed by the MatchMode type.

Public Methods

  NameDescription
ToMatchString
Convert the pattern, by appending/prepending "%"

ToString
The string representation of the MatchMode.
(Overrides .ToString().)

Public Fields

  NameDescription
static memberAnywhere
Match the pattern anywhere in the string

static memberEnd
Match the end of the string to the pattern

static memberExact
Match the entire string to the pattern

static memberStart
Match the start of the string to the pattern

Protected Constructors

  NameDescription
MatchModeNew
Initialize a new instance of the MatchMode class.