StringSegment.StartsWith(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 beginning of this StringSegment matches the specified String when compared using the specified comparisonType
.
public:
bool StartsWith(System::String ^ text, StringComparison comparisonType);
public bool StartsWith (string text, StringComparison comparisonType);
member this.StartsWith : string * StringComparison -> bool
Public Function StartsWith (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 beginning of this StringSegment; otherwise, false
.
Exceptions
text
is null
.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner des problèmes et des demandes de tirage (pull requests). Pour plus d’informations, consultez notre guide du contributeur.