TextInfo.CultureName Propriedade
Definição
public:
property System::String ^ CultureName { System::String ^ get(); };
public string CultureName { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public string CultureName { get; }
member this.CultureName : string
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.CultureName : string
Public ReadOnly Property CultureName As String
Valor da propriedade
O nome de uma cultura.The name of a culture.
- Atributos
Comentários
Um TextInfo objeto é criado a partir de uma cultura específica, e a CultureName propriedade retorna o nome dessa cultura.A TextInfo object is created from a specific culture, and the CultureName property returns the name of that culture.
A CultureName propriedade sempre reflete uma cultura específica em vez de uma cultura neutra.The CultureName property always reflects a specific culture rather than a neutral culture. Se CultureInfo.Name o tiver uma cultura neutra como seu valor, o correspondente CultureName terá como valor uma cultura arbitrária específica que usa o mesmo idioma.If CultureInfo.Name has a neutral culture as its value, then the corresponding CultureName has as its value an arbitrary specific culture that uses the same language. Por exemplo, a Name propriedade retorna "en" para a cultura neutra em inglês, mas a CultureName propriedade correspondente pode retornar "en-US" para a cultura em inglês (Estados Unidos).For example, the Name property returns "en" for the English neutral culture, but the corresponding CultureName property might return "en-US" for the English (United States) culture. Se o TextInfo objeto estiver associado a uma cultura específica em vez de uma cultura neutra, o valor de sua CultureName propriedade será sempre idêntico ao Name valor da propriedade de seu CultureInfo objeto associado.If the TextInfo object is associated with a specific culture instead of a neutral culture, the value of its CultureName property is always identical to the Name property value of its associated CultureInfo object.
Da mesma forma, a CultureName Propriedade nunca reflete uma classificação específica.Similarly, the CultureName property never reflects a particular sort. Ele sempre corresponde a uma ordem de classificação padrão.It always corresponds to a default sort order. Por exemplo, a ordem de classificação padrão para espanhol (Espanha) é a ordem de classificação internacional.For example, the default sort order for Spanish (Spain) is the international sort order. Se CultureInfo.Name for es-ES_tradnl (espanhol com a ordem de classificação tradicional), o correspondente CultureName será ES-es (espanhol com a ordem de classificação internacional padrão).If CultureInfo.Name is es-ES_tradnl (Spanish with the traditional sort order) then the corresponding CultureName is es-ES (Spanish with the default international sort order).