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 for the string that is identified by the provided |
| 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 for the string that is identified by the provided key into table, or value if no string is found.
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 string
- value
- String
The value to use if no string exists at the key.
- table
- String
The table in which to look up the keyed value.
Returns
The localized string for the string that is identified by the provided key into table, or value if no 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