System.ComponentModel.ReferenceConverter.IsValueAllowed Method

Returns a value indicating whether a particular value can be added to the standard values collection.

Syntax

protected virtual bool IsValueAllowed (ITypeDescriptorContext context, object value)

Parameters

context
An System.ComponentModel.ITypeDescriptorContext that provides an additional context.
value
The value to check.

Returns

true if the value is allowed and can be added to the standard values collection; false if the value cannot be added to the standard values collection.

Remarks

This method is called for each value that matches the type associated with this System.ComponentModel.ReferenceConverter and for each component found that is of the associated type. By default, this method returns true, that is, it allows adding the value into the standard values collection.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0