Düzenle

Aracılığıyla paylaş


NSUserDefaults.StringForKey(String) Method

Definition

The string value for the specified key.

[Foundation.Export("stringForKey:")]
public virtual string StringForKey (string defaultName);
abstract member StringForKey : string -> string
override this.StringForKey : string -> string

Parameters

defaultName
String

The key name used to lookup the stored value.

Returns

The string that was stored with the specific key, or null if the stored value is not a string or a number.

Attributes

Remarks

Applies to