[This is preliminary documentation and is subject to change.]

Returns whether the given value object is valid for this type and for the specified context.

Namespace: Tools.ComponentModelT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public override sealed bool IsValid(
	ITypeDescriptorContext context,
	Object value
)
Visual Basic
Public Overrides NotOverridable Function IsValid ( _
	context As ITypeDescriptorContext, _
	value As Object _
) As Boolean
Visual C++
public:
virtual bool IsValid(
	ITypeDescriptorContext^ context, 
	Object^ value
) override sealed
F#
abstract IsValid : 
        context:ITypeDescriptorContext * 
        value:Object -> bool 
override IsValid : 
        context:ITypeDescriptorContext * 
        value:Object -> bool 
JScript
public override final function IsValid(
	context : ITypeDescriptorContext, 
	value : Object
) : boolean

Parameters

context
Type: System.ComponentModel..::..ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
value
Type: System..::..Object
The Object to test for validity.

Return Value

true if the specified value is valid for this object; otherwise, false.

Remarks

This function searches for TypeConverter<(Of <(<'T>)>)>..::..ITypeConverterWithValidation<(Of <(<'TOther>)>)> implementation and calls its IsValid(ITypeDescriptorContext, UTT) method if found. Otherwise it calls IsValid(Object)

See Also