Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

StartsWithOrdinal

func StartsWithOrdinal(prefix: string) -> bool

Declaring type: String
Module: System
Assembly: System.Runtime.dll
Source file: String.rvn

Tests for an exact text prefix.

Parameters

Name Type Description
prefix String Prefix to find.

Return value

Boolean

True when this text starts with the supplied prefix.

Remarks

The empty prefix matches. No normalization or culture rules.