NSUserDefaults.IntForKey(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 int value for the specified key.
[Foundation.Export("integerForKey:")]
public virtual nint IntForKey (string defaultName);
abstract member IntForKey : string -> nint
override this.IntForKey : string -> nint
Parameters
- defaultName
- String
The key name used to lookup the stored value.
Returns
System.System.IntPtr
System.nativeint
The integer representation for the value stored, or zero if the key is not present.
- Attributes