NSBundle.GetLocalizedString Method
Definition
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.
Overloads
| Name | Description |
|---|---|
| GetLocalizedString(NSString, NSString, NSString) |
Get a localized version of the string for the specified key in the specified table. |
| GetLocalizedString(String, String, String) |
Gets the localized string identified by the specified key and table. |
| GetLocalizedString(NSString, NSString, NSString, NSString[]) |
GetLocalizedString(NSString, NSString, NSString)
Get a localized version of the string for the specified key in the specified table.
[Foundation.Export("localizedStringForKey:value:table:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSString GetLocalizedString(Foundation.NSString? key, Foundation.NSString? value, Foundation.NSString? table);
[<Foundation.Export("localizedStringForKey:value:table:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLocalizedString : Foundation.NSString * Foundation.NSString * Foundation.NSString -> Foundation.NSString
override this.GetLocalizedString : Foundation.NSString * Foundation.NSString * Foundation.NSString -> Foundation.NSString
Parameters
- key
- NSString
The key to lookup
- value
- NSString
The value to return if the key is null, or the key was not found on the localization table.
- table
- NSString
The table to search, if the value is null, this uses the Localizable.strings table.
Returns
- Attributes
Applies to
GetLocalizedString(String, String, String)
Gets the localized string identified by the specified key and table.
public Foundation.NSString GetLocalizedString(string key, string? value = default, string? table = default);
member this.GetLocalizedString : string * string * string -> Foundation.NSString
Parameters
- key
- String
The key for the localized string.
- value
- String
The value to return if no localized string exists for key.
- table
- String
The table in which to look up key.
Returns
The localized string, or value if no localized string is found.
Applies to
GetLocalizedString(NSString, NSString, NSString, NSString[])
[Foundation.Export("localizedStringForKey:value:table:localizations:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSString GetLocalizedString(Foundation.NSString key, Foundation.NSString? value, Foundation.NSString? tableName, Foundation.NSString[] localizations);
[<Foundation.Export("localizedStringForKey:value:table:localizations:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLocalizedString : Foundation.NSString * Foundation.NSString * Foundation.NSString * Foundation.NSString[] -> Foundation.NSString
override this.GetLocalizedString : Foundation.NSString * Foundation.NSString * Foundation.NSString * Foundation.NSString[] -> Foundation.NSString
Parameters
- key
- NSString
- value
- NSString
- tableName
- NSString
- localizations
- NSString[]
Returns
- Attributes