Cuemon .NET Framework
StartsWith(String,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.
Syntax
'Declaration
 
Public Overloads Shared Function StartsWith( _
   ByVal value As String, _
   ByVal ParamArray startWithValues() As String _
) As Boolean
public static bool StartsWith( 
   string value,
   params string[] startWithValues
)

Parameters

value
The System.String to compare.
startWithValues
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.
Remarks
This match is performed by using a default value of System.StringComparison.OrdinalIgnoreCase.
Requirements

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

Reference

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