Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
String Class
String Methods
 ToLowerInvariant Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
String..::.ToLowerInvariant Method

Updated: October 2008

Returns a copy of this String object converted to lowercase using the casing rules of the invariant culture.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
Public Function ToLowerInvariant As String
Visual Basic (Usage)
Dim instance As String
Dim returnValue As String

returnValue = instance.ToLowerInvariant()
C#
public string ToLowerInvariant()
Visual C++
public:
String^ ToLowerInvariant()
JScript
public function ToLowerInvariant() : String

Return Value

Type: System..::.String
A String object in lowercase.

The invariant culture represents a culture that is culture-insensitive. It is associated with the English language but not with a specific country or region. For details, see Using the InvariantCulture Property.

If your application depends on the case of a string changing in a predictable way that is unaffected by the current culture, use the ToLowerInvariant method. The ToLowerInvariant method is equivalent to ToLower(CultureInfo.InvariantCulture).

NoteNote:

   This method does not modify the value of the current instance. Instead, it returns a new string in which all characters in the current instance are lowercased.

Security Considerations

If you need the lowercase or uppercase version of an operating system identifier, such as a file name, named pipe, or registry key, use the ToLowerInvariant or ToUpperInvariant methods.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Date

History

Reason

October 2008

Expanded the Remarks section and added a note that the method returns a new String object.

Customer feedback.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker