StringExtensionsCountSubstringStart(String, String) Method
Counts the total amount of occurrences of startsWith at the start of inputString
Namespace: PCBI_CadanceFab_ImportAssembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 16.0.0.0 (16.0.0.0)
public static int CountSubstringStart(
this string input,
string startsWith
)
<ExtensionAttribute>
Public Shared Function CountSubstringStart (
input As String,
startsWith As String
) As Integer
public:
[ExtensionAttribute]
static int CountSubstringStart(
String^ input,
String^ startsWith
)
[<ExtensionAttribute>]
static member CountSubstringStart :
input : string *
startsWith : string -> int
- input String
- The input string for which the total amount of occurrences of startsWith should be counted
- startsWith String
- The string to repeatable total at the start of the input string
Int32The amount of occurrences of startsWith at the start of inputStringIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).