MonobjcMonobjc Documented Class Library
DataForKey Method (defaultName)
NamespacesMonobjc.FoundationNSUserDefaultsDataForKey(NSString)

Returns the data object associated with the specified key.

Original signature is '- (NSData *)dataForKey:(NSString *)defaultName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSData DataForKey(
	NSString defaultName
)
Public Overridable Function DataForKey ( _
	defaultName As NSString _
) As NSData
public:
virtual NSData^ DataForKey(
	NSString^ defaultName
)
Parameters
defaultName (NSString)
A key in the current user's defaults database.
Return Value
The data object associated with the specified key, or nil if the key does not exist or its value is not an NSData object.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)