System::String::EndsWith method

String::EndsWith(const String&) const method

Checks if string ends with specified substring.

bool System::String::EndsWith(const String &value) const
ParameterTypeDescription
valueconst String&Lookup string.

ReturnValue

true if string ends with specified substring, false otherwise.

See Also

String::EndsWith(const String&, bool, const SharedPtr<System::Globalization::CultureInfo>&) const method

Checks if string ends with specified substring.

bool System::String::EndsWith(const String &value, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &culture=nullptr) const
ParameterTypeDescription
valueconst String&Lookup string.
ignoreCaseboolSpecifies whether comparison is case-insensitive.
cultureconst SharedPtr<System::Globalization::CultureInfo>&Culture to use while performing string comparison.

ReturnValue

true if string ends with specified substring, false otherwise.

See Also

String::EndsWith(const String&, System::StringComparison) const method

Checks if string ends with specified substring.

bool System::String::EndsWith(const String &value, System::StringComparison comparisonType) const
ParameterTypeDescription
valueconst String&Lookup string.
comparisonTypeSystem::StringComparisonComparison mode, see System::StringComparison for details.

ReturnValue

true if string ends with specified substring, false otherwise.

See Also