## String::Contains method


Checks if str is a substring of current string.

```cpp
bool System::String::Contains(const String &str) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | Lookup string. |

### ReturnValue

true if substring is present, false otherwise.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
