MonobjcMonobjc Documented Class Library
ValidateValueForKeyError Method (value, key, error)
NamespacesMonobjc.CoreDataNSManagedObjectValidateValueForKeyError(IntPtr, NSString, NSError%)

Validates a property value for a given key.

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

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool ValidateValueForKeyError(
	IntPtr value,
	NSString key,
	out NSError error
)
Public Overridable Function ValidateValueForKeyError ( _
	value As IntPtr, _
	key As NSString, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool ValidateValueForKeyError(
	IntPtr value, 
	NSString^ key, 
	[OutAttribute] NSError^% error
)
Parameters
value (IntPtr)
A pointer to an object.
key (NSString)
The name of one of the receiver's properties.
error (NSError%)
If value is not a valid value for key (and cannot be coerced), upon return contains an instance of NSError that describes the problem.
Return Value
YES if value is a valid value for key (or if value can be coerced into a valid value for key), 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.AppKit (Module: Monobjc.AppKit)