Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2015 Microsoft