MonobjcMonobjc Documented Class Library
ValidateValueForKeyError Method (ioValue, key, outError)
NamespacesMonobjc.FoundationNSObjectValidateValueForKeyError(Id%, NSString, NSError%)

Returns a Boolean value that indicates whether the value specified by a given pointer is valid for the property identified by a given key.

Original signature is '- (BOOL)validateValue:(id *)ioValue forKey:(NSString *)key error:(NSError **)outError'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool ValidateValueForKeyError(
	out Id ioValue,
	NSString key,
	out NSError outError
)
Public Overridable Function ValidateValueForKeyError ( _
	<OutAttribute> ByRef ioValue As Id, _
	key As NSString, _
	<OutAttribute> ByRef outError As NSError _
) As Boolean
public:
virtual bool ValidateValueForKeyError(
	[OutAttribute] Id^% ioValue, 
	NSString^ key, 
	[OutAttribute] NSError^% outError
)
Parameters
ioValue (Id%)
A pointer to a new value for the property identified by key. This method may modify or replace the value in order to make it valid.
key (NSString)
The name of one of the receiver's properties. The key must specify an attribute or a to-one relationship.
outError (NSError%)
If validation is necessary and ioValue is not transformed into a valid value, upon return contains an NSError object that describes the reason that ioValue is not a valid value.
Return Value
YES if *ioValue is a valid value for the property identified by key, or of the method is able to modify the value to *ioValue to make it valid; 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)