Gets a value indicating whether the given object value is valid for this type.
[Visual Basic] Overloads Overridable Public Function IsValid( _ ByVal context As ITypeDescriptorContext, _ ByVal value As Object _ ) As Boolean [C#] public virtual bool IsValid( ITypeDescriptorContext context, object value ); [C++] public: virtual bool IsValid( ITypeDescriptorContext* context, Object* value ); [JScript] public function IsValid( context : ITypeDescriptorContext, value : Object ) : Boolean;
True if the provided value is valid for this object.
The context can be used to extract additional information about the environment this converter is being invoked from. This may be a null reference (in Visual Basic Nothing), so you should always check. Also, properties on the context object may also return a null reference (Nothing).
TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.IsValid Overload List | ITypeDescriptorContext