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

Sets the resource property of the URL specified by a given key to a given value.

Original signature is '- (BOOL)setResourceValue:(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 SetResourceValueForKeyError(
	Id value,
	NSString key,
	out NSError error
)
Public Overridable Function SetResourceValueForKeyError ( _
	value As Id, _
	key As NSString, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool SetResourceValueForKeyError(
	Id^ value, 
	NSString^ key, 
	[OutAttribute] NSError^% error
)
Parameters
value (Id)
The value for the resource property defined 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 set.
Return Value
YES if the resource property named key is successfully set to value; otherwise, NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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