編輯

共用方式為


NSUserDefaults.DataForKey(String) Method

Definition

The NSData value for the specified key.

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

Parameters

defaultName
String

The key name used to lookup the stored value.

Returns

The NSData that was stored with the specific key, or null if the stored value is not present or is not an NSData.

Attributes

Remarks

Applies to