편집

다음을 통해 공유


NSUserDefaults.IntForKey(String) Method

Definition

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

Remarks

Applies to