Contains

StringComparisonField.Contains method (1 of 2)

Indicates that field in message must contain the specified value.

public MailQuery Contains(string value)
Parameter Type Description
value String The value.

Return Value

MailQuery that represents search query (one searching criterion).

See Also


StringComparisonField.Contains method (2 of 2)

Indicates that field in message must contain the specified value.

public MailQuery Contains(string value, bool ignoreCase)
Parameter Type Description
value String The value.
ignoreCase Boolean true to ignore case during the comparison; otherwise, false.

Return Value

MailQuery that represents search query (one searching criterion).

Exceptions

exception condition
AsposeArgumentNullException value;Field value should not be null or empty

See Also