StringSegment.EndsWith(String, StringComparison) Methode

Definition

Überprüft, ob das Ende dieses StringSegment Werts mit dem angegebenen String Vergleich übereinstimmt 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

Parameter

text
String

Der zu vergleichende Wert String.

comparisonType
StringComparison

Einer der Enumerationswerte, die die im Vergleich zu verwendenden Regeln angibt.

Gibt zurück

true if text matches the end of this StringSegment; otherwise, false.

Ausnahmen

text ist null.

Gilt für: