Cuemon .NET Framework
StartsWith(String,IEnumerable<String>) Method

The System.String to compare.
A sequence of System.String values to match against.
Determines whether the beginning of an instance of System.String matches at least one string in the specified sequence of strings.
Public Overloads Shared Function StartsWith( _
   ByVal value As String, _
   ByVal startWithValues As IEnumerable(Of String) _
) As Boolean
public static bool StartsWith( 
   string value,
   IEnumerable<string> startWithValues


The System.String to compare.
A sequence of System.String values to match against.

Return Value

true if at least one value matches the beginning of this string; otherwise, false.
This match is performed by using a default value of System.StringComparison.OrdinalIgnoreCase.

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


StringUtility Class
StringUtility Members
Overload List



| Cuemon is licensed under a The MIT License (MIT)

© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback