Export (0) Print
Expand All

TypeConverter.IsValid Method

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

Overload List

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

[Visual Basic] Overloads Public Function IsValid(Object) As Boolean
[C#] public bool IsValid(object);
[C++] public: bool IsValid(Object*);
[JScript] public function IsValid(Object) : Boolean;

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

[Visual Basic] Overloads Public Overridable Function IsValid(ITypeDescriptorContext, Object) As Boolean
[C#] public virtual bool IsValid(ITypeDescriptorContext, object);
[C++] public: virtual bool IsValid(ITypeDescriptorContext*, Object*);
[JScript] public function IsValid(ITypeDescriptorContext, Object) : Boolean;

Example

For an example on this function, see the sample in TypeConverter.

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace

Show:
© 2014 Microsoft