MonobjcMonobjc Documented Class Library
GetResourceValueForKeyError Method (value, key, error)
NamespacesMonobjc.FoundationNSURLGetResourceValueForKeyError(Id%, NSString, NSError%)

Returns the resource value for the property identified by a given key.

Original signature is '- (BOOL)getResourceValue:(id *)value forKey:(NSString *)key error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool GetResourceValueForKeyError(
	out Id value,
	NSString key,
	out NSError error
)
Public Overridable Function GetResourceValueForKeyError ( _
	<OutAttribute> ByRef value As Id, _
	key As NSString, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool GetResourceValueForKeyError(
	[OutAttribute] Id^% value, 
	NSString^ key, 
	[OutAttribute] NSError^% error
)
Parameters
value (Id%)
The value for the property identified by key.
key (NSString)
The name of one of the URL’s resource properties.
error (NSError%)
The error that occurred in the case that the resource value cannot be retrieved.
Return Value
YES if value is successfully populated; otherwise, NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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