ServiceLanguage(String, String, String, String) Constructor
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ServiceLanguage class. Returns the language friendly name.
C#
public ServiceLanguage (string code, string name, string nativeName = default, string directionality = default);
new Microsoft.Toolkit.Services.MicrosoftTranslator.ServiceLanguage : string * string * string * string -> Microsoft.Toolkit.Services.MicrosoftTranslator.ServiceLanguage
Public Sub New (code As String, name As String, Optional nativeName As String = Nothing, Optional directionality As String = Nothing)
- code
- String
The language code.
- name
- String
The language friendly name.
- nativeName
- String
The display name of the language in the locale native for this language.
- directionality
- String
The directionality, which is rtl for right-to-left languages or ltr for left-to-right languages
Producto | Versiones |
---|---|
Windows Community Toolkit | 6.1.1 |