StringComparisonField.Contains

Contains(string)

Indicates that field in message must contain the specified value.

public MailQuery Contains(string value)
ParameterTypeDescription
valueStringThe value.

Return Value

MailQuery that represents search query (one searching criterion).

See Also


Contains(string, bool)

Indicates that field in message must contain the specified value.

public MailQuery Contains(string value, bool ignoreCase)
ParameterTypeDescription
valueStringThe value.
ignoreCaseBooleantrue to ignore case during the comparison; otherwise, false.

Return Value

MailQuery that represents search query (one searching criterion).

Exceptions

exceptioncondition
AsposeArgumentNullExceptionvalue;Field value should not be null or empty

See Also