Einhugur macOS Bridge plugin. |

# NSUserDefaults.StringForKey Method

Gets or sets String value for given key.

StringForKey(
key as String) as String
StringForKey(
key as String
assigns value as String)

#### Parameters

key
  Gets or sets String value for given key.
value (assignment parameter)
  The value to set.

#### Returns

String
  Returns the value for the requested key or empty string if key was not found or if the key did not contain string value.

#### Remarks

#### See Also

NSUserDefaults Class