NSUserDefaults.DataForKey(String) 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.
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