StringSegment.EndsWith(String, StringComparison) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if the end of this StringSegment matches the specified String when compared using the specified comparisonType
.
public:
bool EndsWith(System::String ^ text, StringComparison comparisonType);
public bool EndsWith (string text, StringComparison comparisonType);
member this.EndsWith : string * StringComparison -> bool
Public Function EndsWith (text As String, comparisonType As StringComparison) As Boolean
Parameters
- comparisonType
- StringComparison
One of the enumeration values that specifies the rules to use in the comparison.
Returns
true
if text
matches the end of this StringSegment; otherwise, false
.
Exceptions
text
is null
.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.