Share via


Strings.LCase Method (String)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns a string or character converted to lowercase.

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

'Declaration
Public Shared Function LCase ( _
    Value As String _
) As String
public static string LCase(
    string Value
)

Parameters

  • Value
    Type: System.String
    Required. Any valid String or Char expression.

Return Value

Type: System.String
Returns a string or character converted to lowercase.

Remarks

Only uppercase letters are converted to lowercase; all lowercase letters and nonletter characters remain unchanged.

This function uses the application's culture information when manipulating the string so that the case changes are appropriate for the locale in which the application is being used.

Security noteSecurity Note:

If your application makes security decisions based on the result of a comparison or case-change operation, then the operation should use the String.Compare method, and pass Ordinal or OrdinalIgnoreCase for the comparisonType argument.

Examples

This example uses the LCase function to return a lowercase version of a string.

' String to convert.
Dim UpperCase As String = "Hello World 1234"
' Returns "hello world 1234".
Dim LowerCase As String = LCase(UpperCase)

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.