Strings.UCase Metoda

Definice

Vrátí řetězec nebo znak obsahující určený řetězec převedený na velká písmena.Returns a string or character containing the specified string converted to uppercase.

Přetížení

UCase(Char)

Vrátí řetězec nebo znak obsahující určený řetězec převedený na velká písmena.Returns a string or character containing the specified string converted to uppercase.

UCase(String)

Vrátí řetězec nebo znak obsahující určený řetězec převedený na velká písmena.Returns a string or character containing the specified string converted to uppercase.

UCase(Char)

Vrátí řetězec nebo znak obsahující určený řetězec převedený na velká písmena.Returns a string or character containing the specified string converted to uppercase.

public:
 static char UCase(char Value);
public static char UCase (char Value);
static member UCase : char -> char
Public Function UCase (Value As Char) As Char

Parametry

Value
Char

Povinná hodnota.Required. Libovolný platný String Char výraz or.Any valid String or Char expression.

Návraty

Char

Řetězec nebo znak obsahující určený řetězec převedený na velká písmena.A string or character containing the specified string converted to uppercase.

Příklady

Tento příklad používá UCase funkci k vrácení velkých a malých písmen řetězce.This example uses the UCase function to return an uppercase version of a string.

' String to convert.
Dim lowerCase As String = "Hello World 1234"
' Returns "HELLO WORLD 1234".
Dim upperCase As String = UCase(lowerCase)

Poznámky

Pouze malá písmena jsou převedena na velká písmena. všechna velká písmena a nepísmenované znaky zůstanou beze změny.Only lowercase letters are converted to uppercase; all uppercase letters and nonletter characters remain unchanged.

Tato funkce využívá při manipulaci s řetězcem informace o jazykové verzi aplikace, aby změny velikosti písmen byly vhodné pro národní prostředí, ve kterém se aplikace používá.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.

Důležité

Pokud vaše aplikace provádí rozhodnutí o zabezpečení na základě výsledku porovnání nebo operace změny velikosti písmen, pak by tato operace měla používat String.Compare metodu a metodu předat Ordinal nebo OrdinalIgnoreCase pro comparisonType argument.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. Další informace naleznete v tématu vliv jazykové verze na řetězce v Visual Basic.For more information, see How Culture Affects Strings in Visual Basic.

Viz také

Platí pro

UCase(String)

Vrátí řetězec nebo znak obsahující určený řetězec převedený na velká písmena.Returns a string or character containing the specified string converted to uppercase.

public:
 static System::String ^ UCase(System::String ^ Value);
public static string UCase (string? Value);
public static string UCase (string Value);
static member UCase : string -> string
Public Function UCase (Value As String) As String

Parametry

Value
String

Povinná hodnota.Required. Libovolný platný String Char výraz or.Any valid String or Char expression.

Návraty

String

Řetězec nebo znak obsahující určený řetězec převedený na velká písmena.A string or character containing the specified string converted to uppercase.

Příklady

Tento příklad používá UCase funkci k vrácení velkých a malých písmen řetězce.This example uses the UCase function to return an uppercase version of a string.

' String to convert.
Dim lowerCase As String = "Hello World 1234"
' Returns "HELLO WORLD 1234".
Dim upperCase As String = UCase(lowerCase)

Poznámky

Pouze malá písmena jsou převedena na velká písmena. všechna velká písmena a nepísmenované znaky zůstanou beze změny.Only lowercase letters are converted to uppercase; all uppercase letters and nonletter characters remain unchanged.

Tato funkce využívá při manipulaci s řetězcem informace o jazykové verzi aplikace, aby změny velikosti písmen byly vhodné pro národní prostředí, ve kterém se aplikace používá.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.

Důležité

Pokud vaše aplikace provádí rozhodnutí o zabezpečení na základě výsledku porovnání nebo operace změny velikosti písmen, pak by tato operace měla používat String.Compare metodu a metodu předat Ordinal nebo OrdinalIgnoreCase pro comparisonType argument.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. Další informace naleznete v tématu vliv jazykové verze na řetězce v Visual Basic.For more information, see How Culture Affects Strings in Visual Basic.

Viz také

Platí pro