string::contains

[This is preliminary documentation and subject to change.]

Tests whether the specified string contains the given search string.

Usage

bool string::contains(source, value)

Parameters

Name Type Description
source string The string to search.
value string The string to locate within source.

Return Value

true if value is found in source; otherwise, false.

Remarks

This function performs a case-sensitive word search using the invariant culture.

Examples

Requirements

Assembly: NAnt.Core (0.92.4509.0)