MonobjcMonobjc Documented Class Library
SetPropertyForKey Method (property, key)
NamespacesMonobjc.FoundationNSStreamSetPropertyForKey(Id, NSString)

Attempts to set the value of a given property of the receiver and returns a Boolean value that indicates whether the value is accepted by the receiver.

Original signature is '- (BOOL)setProperty:(id)property forKey:(NSString *)key'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool SetPropertyForKey(
	Id property,
	NSString key
)
Public Overridable Function SetPropertyForKey ( _
	property As Id, _
	key As NSString _
) As Boolean
public:
virtual bool SetPropertyForKey(
	Id^ property, 
	NSString^ key
)
Parameters
property (Id)
The value for key.
key (NSString)
The key for one of the receiver's properties. See “Constants” for a description of the available property-key constants and expected values.
Return Value
YES if the value is accepted by the receiver, otherwise NO.
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)