Cuemon .NET Framework
Count Method (StringUtility)

The source to count occurrences of character.
The System.Char value to count in source.
Counts the occurrences of character in the specified source.
Syntax
'Declaration
 
Public Shared Function Count( _
   ByVal source As String, _
   ByVal character As Char _
) As Integer
public static int Count( 
   string source,
   char character
)

Parameters

source
The source to count occurrences of character.
character
The System.Char value to count in source.

Return Value

The number of times the character was found in the source.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionsource is null.
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

 

 


| 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